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

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

Advertisement

Kernel v2.5.75 /kernel/fork.c

Filename:/kernel/fork.c
Lines Added:2
Lines Deleted:1
Also changed in: (Previous) 2.5.74-bk7  2.5.74-bk6  2.5.74-bk5  2.5.74-bk4  2.5.74-bk3  2.5.74-bk2 
(Following) 2.5.75-bk1  2.5.75-bk2  2.5.75-bk3 

Location
[  2.5.75
  [  kernel
     o  fork.c

Patch

diff -Nru a/kernel/fork.c b/kernel/fork.c
--- a/kernel/fork.c   Thu Jul 10 13:16:26 2003
+++ b/kernel/fork.c   Thu Jul 10 13:16:26 2003
@@ -286,7 +286,7 @@
          continue;
       if (mpnt->vm_flags & VM_ACCOUNT) {
          unsigned int len = (mpnt->vm_end - mpnt->vm_start) >> PAGE_SHIFT;
-         if (!vm_enough_memory(len))
+         if (security_vm_enough_memory(len))
             goto fail_nomem;
          charge += len;
       }
@@ -864,6 +864,7 @@
    p->lock_depth = -1;      /* -1 = no lock */
    p->start_time = get_jiffies_64();
    p->security = NULL;
+   p->io_context = NULL;
 
    retval = -ENOMEM;
    if ((retval = security_task_alloc(p)))


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