Linux Headquarters
[ Register ]
[ About us ] [ Home Page ]

Advertisement
[ Kernel ] [ Documentation ] [ Links ] [ Books ]

Advertisement

Kernel v2.4.13-ac8 /kernel/exec_domain.c

Filename:/kernel/exec_domain.c
Lines Added:6
Lines Deleted:3
Also changed in: (Previous) 2.4.13-ac7  2.4.13-ac6  2.4.13-ac5  2.4.13-ac4  2.4.13-ac3  2.4.13-ac1 
(Following) 2.4.14  2.4.15-pre3  2.4.15-pre4  2.4.15-pre5  2.4.15-pre6  2.4.15-pre7 

Location
[  2.4.13-ac8
  [  kernel
     o  exec_domain.c

Patch

diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/kernel/exec_domain.c linux.ac/kernel/exec_domain.c
--- linux.vanilla/kernel/exec_domain.c   Thu Oct 11 13:52:14 2001
+++ linux.ac/kernel/exec_domain.c   Mon Oct 29 13:28:05 2001
@@ -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) {
@@ -101,6 +103,7 @@
 #endif
 
    ep = &default_exec_domain;
+   return (ep);
 out:
    read_unlock(&exec_domains_lock);
    return (ep);


Comments: webmaster (at) linuxhq.com.
Advertising: banners (at) linuxhq.com.
Compilation ©1998-2008 Linux Headquarters, Inc.