diff options
Diffstat (limited to 'fs/notify')
-rw-r--r-- | fs/notify/fanotify/fanotify_user.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/fs/notify/fanotify/fanotify_user.c b/fs/notify/fanotify/fanotify_user.c index 01fffe62a2d4..ca54957b1f61 100644 --- a/fs/notify/fanotify/fanotify_user.c +++ b/fs/notify/fanotify/fanotify_user.c | |||
@@ -692,8 +692,10 @@ SYSCALL_DEFINE2(fanotify_init, unsigned int, flags, unsigned int, event_f_flags) | |||
692 | 692 | ||
693 | /* fsnotify_alloc_group takes a ref. Dropped in fanotify_release */ | 693 | /* fsnotify_alloc_group takes a ref. Dropped in fanotify_release */ |
694 | group = fsnotify_alloc_group(&fanotify_fsnotify_ops); | 694 | group = fsnotify_alloc_group(&fanotify_fsnotify_ops); |
695 | if (IS_ERR(group)) | 695 | if (IS_ERR(group)) { |
696 | free_uid(user); | ||
696 | return PTR_ERR(group); | 697 | return PTR_ERR(group); |
698 | } | ||
697 | 699 | ||
698 | group->fanotify_data.user = user; | 700 | group->fanotify_data.user = user; |
699 | atomic_inc(&user->fanotify_listeners); | 701 | atomic_inc(&user->fanotify_listeners); |