diff options
Diffstat (limited to 'ipc')
-rw-r--r-- | ipc/shm.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -968,10 +968,13 @@ SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg) | |||
968 | SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) | 968 | SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) |
969 | { | 969 | { |
970 | struct mm_struct *mm = current->mm; | 970 | struct mm_struct *mm = current->mm; |
971 | struct vm_area_struct *vma, *next; | 971 | struct vm_area_struct *vma; |
972 | unsigned long addr = (unsigned long)shmaddr; | 972 | unsigned long addr = (unsigned long)shmaddr; |
973 | loff_t size = 0; | ||
974 | int retval = -EINVAL; | 973 | int retval = -EINVAL; |
974 | #ifdef CONFIG_MMU | ||
975 | loff_t size = 0; | ||
976 | struct vm_area_struct *next; | ||
977 | #endif | ||
975 | 978 | ||
976 | if (addr & ~PAGE_MASK) | 979 | if (addr & ~PAGE_MASK) |
977 | return retval; | 980 | return retval; |