summaryrefslogtreecommitdiff
path: root/drivers/base
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2021-07-12 19:24:30 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-09-15 10:50:32 +0300
commitc4aaad8a338958016d4a0633564ec1c15341efea (patch)
tree5679ac3f347ae3020c2ea89c4d4d1d9978d41e77 /drivers/base
parent8c3b5028ec02924f3b037a6d07124a006a9a3c4f (diff)
downloadlinux-c4aaad8a338958016d4a0633564ec1c15341efea.tar.xz
gfs2: Fix memory leak of object lsi on error return path
[ Upstream commit a6579cbfd7216b071008db13360c322a6b21400b ] In the case where IS_ERR(lsi->si_sc_inode) is true the error exit path to free_local does not kfree the allocated object lsi leading to a memory leak. Fix this by kfree'ing lst before taking the error exit path. Addresses-Coverity: ("Resource leak") Fixes: 97fd734ba17e ("gfs2: lookup local statfs inodes prior to journal recovery") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/base')
0 files changed, 0 insertions, 0 deletions