]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - fs/gfs2/rgrp.c
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)
committerAndreas Gruenbacher <agruenba@redhat.com>
Thu, 12 Nov 2020 12:09:07 +0000 (13:09 +0100)
commitbc923818b190c8b63c91a47702969c8053574f5b
treec6bdf9b3317fc1a9cc48dbf53303232896ca1290
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
gfs2: fix possible reference leak in gfs2_check_blk_type

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>
fs/gfs2/rgrp.c