]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: Remove ill-placed consistency check
authorAndreas Gruenbacher <agruenba@redhat.com>
Wed, 10 Apr 2024 02:24:56 +0000 (04:24 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 30 May 2024 07:49:14 +0000 (09:49 +0200)
commit027fd5c39dfef00db89cc02ad62def008b4a7a7a
tree5b54730bc93df390052a6b44d9885e9fbe537437
parent07b205c3fba3d9f4904123d035245eeb7f230642
gfs2: Remove ill-placed consistency check

[ Upstream commit 59f60005797b4018d7b46620037e0c53d690795e ]

This consistency check was originally added by commit 9287c6452d2b1
("gfs2: Fix occasional glock use-after-free").  It is ill-placed in
gfs2_glock_free() because if it holds there, it must equally hold in
__gfs2_glock_put() already.  Either way, the check doesn't seem
necessary anymore.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Stable-dep-of: d98779e68772 ("gfs2: Fix potential glock use-after-free on unmount")
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/gfs2/glock.c