GFS2: fix dentry leaks
authorMiklos Szeredi <miklos@szeredi.hu>
Mon, 23 Sep 2013 12:21:04 +0000 (13:21 +0100)
committerSteven Whitehouse <swhiteho@redhat.com>
Mon, 23 Sep 2013 12:30:57 +0000 (13:30 +0100)
commit5ca1db41ecdeb0358b968265fadb755213558a85
tree870f18958af3186798422a600147bbe480b9d66c
parent149ed7f51e279916e7a7a1eef5cec50da67d7cfe
GFS2: fix dentry leaks

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>
Cc: stable@vger.kernel.org
fs/gfs2/inode.c