switch aio and shm to do_mmap_pgoff(), make do_mmap() static
after all, 0 bytes and 0 pages is the same thing... Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
This commit is contained in:
@@ -1054,7 +1054,7 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg, ulong *raddr)
|
||||
goto invalid;
|
||||
}
|
||||
|
||||
user_addr = do_mmap (file, addr, size, prot, flags, 0);
|
||||
user_addr = do_mmap_pgoff(file, addr, size, prot, flags, 0);
|
||||
*raddr = user_addr;
|
||||
err = 0;
|
||||
if (IS_ERR_VALUE(user_addr))
|
||||
|
Reference in New Issue
Block a user