]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ceph: fix dentry leak in splice_dentry()
authorYan, Zheng <zyan@redhat.com>
Tue, 19 Jun 2018 10:20:34 +0000 (18:20 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 24 Aug 2018 11:06:51 +0000 (13:06 +0200)
commit3aebfca49f9e2d73c028dc94f92d8af025155f3f
tree95969aee2dee8aa2362c1daf3debaff2b4ae1512
parent788a2c75a32d68d6adf583ad4a7ee1bfe7de0ad6
ceph: fix dentry leak in splice_dentry()

[ Upstream commit 8b8f53af1ed9df88a4c0fbfdf3db58f62060edf3 ]

In any case, d_splice_alias() does not drop reference of original
dentry.

Signed-off-by: "Yan, Zheng" <zyan@redhat.com>
Reviewed-by: Jeff Layton <jlayton@redhat.com>
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/ceph/inode.c