Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 207710
b: refs/heads/master
c: 44b350f
h: refs/heads/master
v: v3
  • Loading branch information
Jerome Marchand authored and Eric Paris committed Jul 28, 2010
1 parent e576f70 commit eefb1dc
Show file tree
Hide file tree
Showing 2 changed files with 3 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: f874e1ac21d7708464dc656a10312542c54719f1
refs/heads/master: 44b350fc23e36e95c8e042b7ded66217ea2b9d72
4 changes: 2 additions & 2 deletions trunk/fs/notify/inotify/inotify_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -566,7 +566,7 @@ static int inotify_update_existing_watch(struct fsnotify_group *group,

/* don't allow invalid bits: we don't want flags set */
mask = inotify_arg_to_mask(arg);
if (unlikely(!mask))
if (unlikely(!(mask & IN_ALL_EVENTS)))
return -EINVAL;

fsn_mark = fsnotify_find_inode_mark(group, inode);
Expand Down Expand Up @@ -624,7 +624,7 @@ static int inotify_new_watch(struct fsnotify_group *group,

/* don't allow invalid bits: we don't want flags set */
mask = inotify_arg_to_mask(arg);
if (unlikely(!mask))
if (unlikely(!(mask & IN_ALL_EVENTS)))
return -EINVAL;

tmp_i_mark = kmem_cache_alloc(inotify_inode_mark_cachep, GFP_KERNEL);
Expand Down

0 comments on commit eefb1dc

Please sign in to comment.