1
0
Fork 0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2025-01-26 02:25:00 -05:00
linux/fs/gfs2
Colin Ian King a6579cbfd7 gfs2: Fix memory leak of object lsi on error return path
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: 97fd734ba1 ("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>
2021-07-20 15:06:20 +02:00
..
acl.c
acl.h
aops.c iomap: use __set_page_dirty_nobuffers 2021-06-29 10:53:48 -07:00
aops.h
bmap.c gfs2: Clean up gfs2_unstuff_dinode 2021-06-29 10:56:51 +02:00
bmap.h gfs2: Clean up gfs2_unstuff_dinode 2021-06-29 10:56:51 +02:00
dentry.c
dir.c gfs2: Clean up gfs2_unstuff_dinode 2021-06-29 10:56:51 +02:00
dir.h
export.c
file.c gfs2: Clean up gfs2_unstuff_dinode 2021-06-29 10:56:51 +02:00
gfs2.h
glock.c gfs2: Use list_move_tail instead of list_del/list_add_tail 2021-06-28 14:13:38 +02:00
glock.h
glops.c gfs2: Fix I_NEW check in gfs2_dinode_in 2021-05-20 13:31:37 +02:00
glops.h
incore.h gfs2: Remove unused variable sb_format 2021-04-03 21:38:11 +02:00
inode.c Changes in gfs2: 2021-04-29 10:33:35 -07:00
inode.h Changes in gfs2: 2021-04-29 10:33:35 -07:00
Kconfig
lock_dlm.c gfs2: Fix a number of kernel-doc warnings 2021-04-09 22:14:13 +02:00
log.c gfs2: Clean up revokes on normal withdraws 2021-05-20 13:31:37 +02:00
log.h gfs2: Clean up revokes on normal withdraws 2021-05-20 13:31:37 +02:00
lops.c gfs2: Clean up revokes on normal withdraws 2021-05-20 13:31:37 +02:00
lops.h gfs2: Clean up revokes on normal withdraws 2021-05-20 13:31:37 +02:00
main.c
Makefile
meta_io.c mm: require ->set_page_dirty to be explicitly wired up 2021-06-29 10:53:48 -07:00
meta_io.h gfs2: Turn gfs2_meta_indirect_buffer into gfs2_meta_buffer 2021-04-03 21:38:12 +02:00
ops_fstype.c gfs2: Fix memory leak of object lsi on error return path 2021-07-20 15:06:20 +02:00
quota.c gfs2: Clean up gfs2_unstuff_dinode 2021-06-29 10:56:51 +02:00
quota.h
recovery.c gfs2: Fix fall-through warnings for Clang 2021-04-20 22:38:21 +02:00
recovery.h
rgrp.c gfs2: Fix a number of kernel-doc warnings 2021-04-09 22:14:13 +02:00
rgrp.h
super.c gfs2: Fix a number of kernel-doc warnings 2021-04-09 22:14:13 +02:00
super.h
sys.c gfs2: Add new sysfs file for gfs2 status 2021-04-08 15:07:21 +02:00
sys.h
trace_gfs2.h
trans.c
trans.h
util.c gfs2: Clean up revokes on normal withdraws 2021-05-20 13:31:37 +02:00
util.h
xattr.c gfs2: Fix a number of kernel-doc warnings 2021-04-09 22:14:13 +02:00
xattr.h