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 b94248570304..a95dae447707 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -1618,7 +1618,7 @@ long do_shmat(int shmid, char __user *shmaddr, int shmflg,
rcu_read_unlock();
err = -ENOMEM;
- sfd = kzalloc_obj(*sfd, GFP_KERNEL);
+ sfd = kzalloc_obj(*sfd);
if (!sfd) {
fput(base);
goto out_nattch;