]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gfs2: fix possible reference leak in gfs2_check_blk_type
authorZhang Qilong <zhangqilong3@huawei.com>
Sun, 8 Nov 2020 09:27:41 +0000 (17:27 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 24 Nov 2020 12:29:01 +0000 (13:29 +0100)
commite240b43268870b981da9eabb361e04d121e4586b
tree202159515f8c238ccef57507b6546a1e3508f612
parent195f9e1a5457e7d0a24fc59ec698c1f6b9770220
gfs2: fix possible reference leak in gfs2_check_blk_type

[ Upstream commit bc923818b190c8b63c91a47702969c8053574f5b ]

In the fail path of gfs2_check_blk_type, forgetting to call
gfs2_glock_dq_uninit will result in rgd_gh reference leak.

Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/gfs2/rgrp.c