]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
qibfs: fix dentry leak
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Feb 2024 04:58:42 +0000 (23:58 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 May 2024 10:02:20 +0000 (12:02 +0200)
commitdb71ca93259dd1078bcfea3afafde2143cfc2da7
treef6fbc8a5da427c8b7c0da00371e6d160a88216b3
parent9b332c72299f2ac284ab3d7c0301969b933e4ca1
qibfs: fix dentry leak

[ Upstream commit aa23317d0268b309bb3f0801ddd0d61813ff5afb ]

simple_recursive_removal() drops the pinning references to all positives
in subtree.  For the cases when its argument has been kept alive by
the pinning alone that's exactly the right thing to do, but here
the argument comes from dcache lookup, that needs to be balanced by
explicit dput().

Fixes: e41d237818598 "qib_fs: switch to simple_recursive_removal()"
Fucked-up-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/qib/qib_fs.c