aboutsummaryrefslogtreecommitdiffstats
path: root/ipc
diff options
context:
space:
mode:
Diffstat (limited to 'ipc')
-rw-r--r--ipc/shm.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 560818353599..15dd238e5338 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -968,10 +968,13 @@ SYSCALL_DEFINE3(shmat, int, shmid, char __user *, shmaddr, int, shmflg)
968SYSCALL_DEFINE1(shmdt, char __user *, shmaddr) 968SYSCALL_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;