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
- Lines: 11
- Date:
Mon Dec 20 11:16:40 1999
- Orig file:
v2.3.33/linux/ipc/shm.c
- Orig date:
Tue Dec 7 09:32:51 1999
diff -u --recursive --new-file v2.3.33/linux/ipc/shm.c linux/ipc/shm.c
@@ -549,8 +549,8 @@
down(¤t->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)