Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 26855
b: refs/heads/master
c: d66fd90
h: refs/heads/master
i:
  26853: 77b07f2
  26851: d6ee116
  26847: 84aa454
v: v3
  • Loading branch information
Amy Griffis authored and Linus Torvalds committed May 21, 2006
1 parent 32543cb commit ac3b123
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: 66055a4e7334b05354c835123ff621c5f700e56a
refs/heads/master: d66fd908acc8ba88541ecc570d89b0243f947c5e
3 changes: 1 addition & 2 deletions trunk/fs/inotify.c
Original file line number Diff line number Diff line change
Expand Up @@ -894,8 +894,7 @@ static int inotify_ignore(struct inotify_device *dev, s32 wd)
mutex_lock(&dev->mutex);

/* make sure that we did not race */
watch = idr_find(&dev->idr, wd);
if (likely(watch))
if (likely(idr_find(&dev->idr, wd) == watch))
remove_watch(watch, dev);

mutex_unlock(&dev->mutex);
Expand Down

0 comments on commit ac3b123

Please sign in to comment.