GFS2: fix dentry leaks
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 23 Sep 2013 12:21:04 +0000 (13:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Nov 2013 19:28:13 +0000 (11:28 -0800)
commitabf0f6a245f013794efba9bcef60840fc9f72d13
treef1af9bfe8f93bed4d8ba78540459e7a66f9dc338
parentae2d3f3d18e1b3be238f3b66d567f3801572e748
GFS2: fix dentry leaks

commit 5ca1db41ecdeb0358b968265fadb755213558a85 upstream.

We need to dput() the result of d_splice_alias(), unless it is passed to
finish_no_open().

Edited by Steven Whitehouse in order to make it apply to the current
GFS2 git tree, and taking account of a prerequisite patch which hasn't
been applied.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/inode.c