From a27f3f827a2a05bc0b1b986d46d2fe135fcbe2e8 Mon Sep 17 00:00:00 2001 From: Eric Paris Date: Tue, 23 Nov 2010 23:48:26 -0500 Subject: [PATCH] --- yaml --- r: 223361 b: refs/heads/master c: 26379198937fcc9bbe7be76be695d06df8334eaa h: refs/heads/master i: 223359: 02f68c9debea62c5de0f6e4f8cb40e71d398db19 v: v3 --- [refs] | 2 +- trunk/fs/notify/fanotify/fanotify_user.c | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 8a26f0e0f85c..c91f5e39d64c 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: a2ae4cc9a16e211c8a128ba10d22a85431f093ab +refs/heads/master: 26379198937fcc9bbe7be76be695d06df8334eaa diff --git a/trunk/fs/notify/fanotify/fanotify_user.c b/trunk/fs/notify/fanotify/fanotify_user.c index 01fffe62a2d4..ca54957b1f61 100644 --- a/trunk/fs/notify/fanotify/fanotify_user.c +++ b/trunk/fs/notify/fanotify/fanotify_user.c @@ -692,8 +692,10 @@ SYSCALL_DEFINE2(fanotify_init, unsigned int, flags, unsigned int, event_f_flags) /* fsnotify_alloc_group takes a ref. Dropped in fanotify_release */ group = fsnotify_alloc_group(&fanotify_fsnotify_ops); - if (IS_ERR(group)) + if (IS_ERR(group)) { + free_uid(user); return PTR_ERR(group); + } group->fanotify_data.user = user; atomic_inc(&user->fanotify_listeners);