Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 24212
b: refs/heads/master
c: 27315c9
h: refs/heads/master
v: v3
  • Loading branch information
Eric Sesterhenn authored and Adrian Bunk committed Mar 26, 2006
1 parent 8d2b706 commit 998746c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 309be53da60dc24b73f3f0bceab8f0707c05371f
refs/heads/master: 27315c96a4c3d5f24a902111dae537cdc28302e4
6 changes: 2 additions & 4 deletions trunk/ipc/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,7 @@ asmlinkage long sys_semget (key_t key, int nsems, int semflg)
err = -EEXIST;
} else {
sma = sem_lock(id);
if(sma==NULL)
BUG();
BUG_ON(sma==NULL);
if (nsems > sma->sem_nsems)
err = -EINVAL;
else if (ipcperms(&sma->sem_perm, semflg))
Expand Down Expand Up @@ -1181,8 +1180,7 @@ asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops,

sma = sem_lock(semid);
if(sma==NULL) {
if(queue.prev != NULL)
BUG();
BUG_ON(queue.prev != NULL);
error = -EIDRM;
goto out_free;
}
Expand Down

0 comments on commit 998746c

Please sign in to comment.