patch-2.3.34 linux/ipc/shm.c

Next file: linux/kernel/Makefile
Previous file: linux/include/pcmcia/cs.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.33/linux/ipc/shm.c linux/ipc/shm.c
@@ -549,8 +549,8 @@
 	down(&current->mm->mmap_sem);
 	err = -EINVAL;
 	shp = shm_lock(shmid);
-	if(shp == NULL)
-		goto out_unlock_up;
+	if (!shp)
+		goto out_up;
 
 	err = -EACCES;
 	if (ipcperms(&shp->u.shm_perm, flg))

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)