patch-2.3.30 linux/ipc/sem.c
Next file: linux/ipc/shm.c
Previous file: linux/include/video/fbcon.h
Back to the patch index
Back to the overall index
- Lines: 14
- Date:
Sat Nov 27 15:27:49 1999
- Orig file:
v2.3.29/linux/ipc/sem.c
- Orig date:
Tue Nov 23 22:42:21 1999
diff -u --recursive --new-file v2.3.29/linux/ipc/sem.c linux/ipc/sem.c
@@ -190,12 +190,7 @@
smanew = sem_lock(semid);
if(smanew==NULL)
return -EIDRM;
- if(smanew != sma)
- goto out_EIDRM;
- if(sem_checkid(sma,semid))
- goto out_EIDRM;
- if(sma->sem_nsems != nsems) {
-out_EIDRM:
+ if(smanew != sma || sem_checkid(sma,semid) || sma->sem_nsems != nsems) {
sem_unlock(semid);
return -EIDRM;
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)