Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64247
b: refs/heads/master
c: 179394a
h: refs/heads/master
i:
  64245: 451f175
  64243: 658f3f6
  64239: bd5ac28
v: v3
  • Loading branch information
Thomas Gleixner authored and Linus Torvalds committed Aug 23, 2007
1 parent e56c045 commit 50d495b
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 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: 928923c76b393e38e5ba1d47e843e208ceef6cf9
refs/heads/master: 179394af7a2baa1d0a3cb1670075310d72247d38
7 changes: 4 additions & 3 deletions trunk/kernel/posix-timers.c
Original file line number Diff line number Diff line change
Expand Up @@ -605,13 +605,14 @@ static struct k_itimer * lock_timer(timer_t timer_id, unsigned long *flags)
timr = (struct k_itimer *) idr_find(&posix_timers_id, (int) timer_id);
if (timr) {
spin_lock(&timr->it_lock);
spin_unlock(&idr_lock);

if ((timr->it_id != timer_id) || !(timr->it_process) ||
timr->it_process->tgid != current->tgid) {
unlock_timer(timr, *flags);
spin_unlock(&timr->it_lock);
spin_unlock_irqrestore(&idr_lock, *flags);
timr = NULL;
}
} else
spin_unlock(&idr_lock);
} else
spin_unlock_irqrestore(&idr_lock, *flags);

Expand Down

0 comments on commit 50d495b

Please sign in to comment.