summaryrefslogtreecommitdiff
path: root/ipc/shm.c
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/shm.c')
-rw-r--r--ipc/shm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index 32974cfe5947..5095eb3a6a6c 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1289,7 +1289,7 @@ SYSCALL_DEFINE1(shmdt, char __user *, shmaddr)
int retval = -EINVAL;
#ifdef CONFIG_MMU
loff_t size = 0;
- struct file *file;
+ struct file *file = NULL;
struct vm_area_struct *next;
#endif