diff options
Diffstat (limited to 'fs/notify/fanotify')
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index 1218d10424d0..f0e7a57bc899 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -414,6 +414,10 @@ static int fanotify_release(struct inode *ignored, struct file *file) | |||
414 | 414 | ||
415 | wake_up(&group->fanotify_data.access_waitq); | 415 | wake_up(&group->fanotify_data.access_waitq); |
416 | #endif | 416 | #endif |
417 | |||
418 | if (file->f_flags & FASYNC) | ||
419 | fsnotify_fasync(-1, file, 0); | ||
420 | |||
417 | /* matches the fanotify_init->fsnotify_alloc_group */ | 421 | /* matches the fanotify_init->fsnotify_alloc_group */ |
418 | fsnotify_destroy_group(group); | 422 | fsnotify_destroy_group(group); |
419 | 423 | ||