[Patch] small fix for warning in exec_domain.c

From: Manik Raina (manik@cisco.com)
Date: Mon Oct 29 2001 - 04:00:03 EST


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/



This archive was generated by hypermail 2b29 : Wed Oct 31 2001 - 21:00:36 EST