lkml.org 
[lkml]   [2001]   [Oct]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[Patch] small fix for warning in exec_domain.c
Hi all,

When support for Kernel modules is not configured, we get
a warning. This fix solves that.

thanks
Manik Raina

Index: exec_domain.c
===================================================================
RCS file: /vger/linux/kernel/exec_domain.c,v
retrieving revision 1.21
diff -u -r1.21 exec_domain.c
--- exec_domain.c 25 Oct 2001 20:23:02 -0000 1.21
+++ exec_domain.c 29 Oct 2001 08:40:02 -0000
@@ -77,7 +77,6 @@
lookup_exec_domain(u_long personality)
{
struct exec_domain * ep;
- char buffer[30];
u_long pers = personality(personality);

read_lock(&exec_domains_lock);
@@ -89,8 +88,11 @@

#ifdef CONFIG_KMOD
read_unlock(&exec_domains_lock);
- sprintf(buffer, "personality-%ld", pers);
- request_module(buffer);
+ {
+ char buffer[30];
+ sprintf(buffer, "personality-%ld", pers);
+ request_module(buffer);
+ }
read_lock(&exec_domains_lock);

for (ep = exec_domains; ep; ep = ep->next) {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:18    [W:0.038 / U:2.312 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site