]> Pileus Git - ~andy/linux/blobdiff - mm/mremap.c
split ->file_mmap() into ->mmap_addr()/->mmap_file()
[~andy/linux] / mm / mremap.c
index 169c53b87749eafc29f6fa370ea1bcade85e658a..ebf10892b63df3a3bc834d4174f9785ce041f48f 100644 (file)
@@ -371,7 +371,7 @@ static unsigned long mremap_to(unsigned long addr,
        if ((addr <= new_addr) && (addr+old_len) > new_addr)
                goto out;
 
-       ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1);
+       ret = security_mmap_addr(new_addr);
        if (ret)
                goto out;
 
@@ -532,7 +532,7 @@ SYSCALL_DEFINE5(mremap, unsigned long, addr, unsigned long, old_len,
                        goto out;
                }
 
-               ret = security_file_mmap(NULL, 0, 0, 0, new_addr, 1);
+               ret = security_mmap_addr(new_addr);
                if (ret)
                        goto out;
                ret = move_vma(vma, addr, old_len, new_len, new_addr);