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

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

Advertisement

Kernel v2.6.24 /mm/mremap.c

Filename:/mm/mremap.c
Lines Added:2
Lines Deleted:2
Also changed in: (Previous) 2.6.24-rc8  2.6.24-rc7  2.6.24-rc6  2.6.24-rc5  2.6.24-rc4  2.6.24-rc3 
(Following) 2.6.27-rc1  2.6.27-rc2  2.6.27-rc3  2.6.27-rc4  2.6.27-rc5  2.6.27-rc6 

Location
[  2.6.24
  [  mm
     o  mremap.c

Patch

diff --git a/mm/mremap.c b/mm/mremap.c
index 8ea5c24..08e3c7f 100644
--- a/mm/mremap.c
+++ b/mm/mremap.c
@@ -291,7 +291,7 @@ unsigned long do_mremap(unsigned long addr,
       if ((addr <= new_addr) && (addr+old_len) > new_addr)
          goto out;
 
-      ret = security_file_mmap(0, 0, 0, 0, new_addr, 1);
+      ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1);
       if (ret)
          goto out;
 
@@ -399,7 +399,7 @@ unsigned long do_mremap(unsigned long addr,
             goto out;
          }
 
-         ret = security_file_mmap(0, 0, 0, 0, new_addr, 1);
+         ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1);
          if (ret)
             goto out;
       }


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