Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 2969
b: refs/heads/master
c: b78755a
h: refs/heads/master
i:
  2967: 3d18042
v: v3
  • Loading branch information
Manfred Spraul authored and Linus Torvalds committed Jun 23, 2005
1 parent baed78d commit 7d93e0e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 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: 0030cbf06c669b65e124414af51b5010fc53b760
refs/heads/master: b78755abcdf1d7667c51580a3783e16e981ed926
9 changes: 3 additions & 6 deletions trunk/ipc/sem.c
Original file line number Diff line number Diff line change
Expand Up @@ -1054,7 +1054,7 @@ asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops,
struct sembuf fast_sops[SEMOPM_FAST];
struct sembuf* sops = fast_sops, *sop;
struct sem_undo *un;
int undos = 0, decrease = 0, alter = 0, max;
int undos = 0, alter = 0, max;
struct sem_queue queue;
unsigned long jiffies_left = 0;

Expand Down Expand Up @@ -1089,13 +1089,10 @@ asmlinkage long sys_semtimedop(int semid, struct sembuf __user *tsops,
if (sop->sem_num >= max)
max = sop->sem_num;
if (sop->sem_flg & SEM_UNDO)
undos++;
if (sop->sem_op < 0)
decrease = 1;
if (sop->sem_op > 0)
undos = 1;
if (sop->sem_op != 0)
alter = 1;
}
alter |= decrease;

retry_undos:
if (undos) {
Expand Down

0 comments on commit 7d93e0e

Please sign in to comment.