diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/shm.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -814,6 +814,9 @@ asmlinkage long sys_shmdt(char __user *shmaddr) | |||
814 | loff_t size = 0; | 814 | loff_t size = 0; |
815 | int retval = -EINVAL; | 815 | int retval = -EINVAL; |
816 | 816 | ||
817 | if (addr & ~PAGE_MASK) | ||
818 | return retval; | ||
819 | |||
817 | down_write(&mm->mmap_sem); | 820 | down_write(&mm->mmap_sem); |
818 | 821 | ||
819 | /* | 822 | /* |