]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - mm/mmap.c
Security: remove security_file_mmap hook sparse-warnings (NULL as 0).
[net-next-2.6.git] / mm / mmap.c
index 15678aa6ec73a4389d1c523fe542144cd3050836..bfa389fc6ded6a2a5892eec57ed6cd90bbd34d1e 100644 (file)
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1620,7 +1620,7 @@ static inline int expand_downwards(struct vm_area_struct *vma,
                return -ENOMEM;
 
        address &= PAGE_MASK;
-       error = security_file_mmap(0, 0, 0, 0, address, 1);
+       error = security_file_mmap(NULL, 0, 0, 0, address, 1);
        if (error)
                return error;
 
@@ -1941,7 +1941,7 @@ unsigned long do_brk(unsigned long addr, unsigned long len)
        if (is_hugepage_only_range(mm, addr, len))
                return -EINVAL;
 
-       error = security_file_mmap(0, 0, 0, 0, addr, 1);
+       error = security_file_mmap(NULL, 0, 0, 0, addr, 1);
        if (error)
                return error;