diff options
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index bff8567aa42d..25adb6d1b3db 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -497,10 +497,9 @@ static __u32 fanotify_mark_remove_from_mask(struct fsnotify_mark *fsn_mark, | |||
497 | oldmask = fsn_mark->ignored_mask; | 497 | oldmask = fsn_mark->ignored_mask; |
498 | fsnotify_set_mark_ignored_mask_locked(fsn_mark, (oldmask & ~mask)); | 498 | fsnotify_set_mark_ignored_mask_locked(fsn_mark, (oldmask & ~mask)); |
499 | } | 499 | } |
500 | *destroy = !(fsn_mark->mask | fsn_mark->ignored_mask); | ||
500 | spin_unlock(&fsn_mark->lock); | 501 | spin_unlock(&fsn_mark->lock); |
501 | 502 | ||
502 | *destroy = !(oldmask & ~mask); | ||
503 | |||
504 | return mask & oldmask; | 503 | return mask & oldmask; |
505 | } | 504 | } |
506 | 505 | ||