fanotify: do not leak user reference on allocation failure
authorEric Paris <eparis@redhat.com>
Wed, 24 Nov 2010 04:48:26 +0000 (23:48 -0500)
committerEric Paris <eparis@redhat.com>
Tue, 7 Dec 2010 21:14:23 +0000 (16:14 -0500)
If fanotify_init is unable to allocate a new fsnotify group it will
return but will not drop its reference on the associated user struct.
Drop that reference on error.

Reported-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Eric Paris <eparis@redhat.com>

No differences found