summaryrefslogtreecommitdiffstats
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, 0 insertions, 2 deletions
diff --git a/ipc/shm.c b/ipc/shm.c
index c5976d318ed1..d1988ef821a1 100644
--- a/ipc/shm.c
+++ b/ipc/shm.c
@@ -526,8 +526,6 @@ static struct shmid_kernel *shm_alloc(void)
if (unlikely(!shp))
return NULL;
- atomic_set(&shp->shm_perm.refcount, 1);
-
return shp;
}