linux_dsm_epyc7002/fs/gfs2
Tobin C. Harding fbcde197e1 gfs2: Fix error path kobject memory leak
If a call to kobject_init_and_add() fails we must call kobject_put()
otherwise we leak memory.

Function gfs2_sys_fs_add always calls kobject_init_and_add() which
always calls kobject_init().

It is safe to leave object destruction up to the kobject release
function and never free it manually.

Remove call to kfree() and always call kobject_put() in the error path.

Signed-off-by: Tobin C. Harding <tobin@kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2019-05-13 15:43:01 -07:00
..
acl.c
acl.h
aops.c gfs2: Fix iomap write page reclaim deadlock 2019-05-07 23:39:15 +02:00
aops.h
bmap.c gfs2: Fix iomap write page reclaim deadlock 2019-05-07 23:39:15 +02:00
bmap.h gfs2: clean_journal improperly set sd_log_flush_head 2019-05-07 23:39:04 +02:00
dentry.c
dir.c gfs2: Rename gfs2_trans_{add_unrevoke => remove_revoke} 2019-05-07 23:39:14 +02:00
dir.h
export.c
file.c iomap: wire up the iopoll method 2019-02-24 08:20:17 -07:00
gfs2.h
glock.c gfs2: Replace gl_revokes with a GLF flag 2019-05-07 23:39:14 +02:00
glock.h gfs: no need to check return value of debugfs_create functions 2019-01-23 12:30:34 +01:00
glops.c gfs2: read journal in large chunks 2019-05-07 23:39:15 +02:00
glops.h
incore.h gfs2: fix race between gfs2_freeze_func and unmount 2019-05-07 23:39:14 +02:00
inode.c gfs2: Get rid of potential double-freeing in gfs2_create_inode 2018-12-11 21:44:29 +01:00
inode.h gfs2: Fix an incorrect gfs2_assert() 2019-03-06 07:00:43 -07:00
Kconfig block: remove CONFIG_LBDAF 2019-04-06 10:48:35 -06:00
lock_dlm.c gfs2: Use fs_* functions instead of pr_* function where we can 2018-10-05 11:16:54 -05:00
log.c gfs2: read journal in large chunks 2019-05-07 23:39:15 +02:00
log.h gfs2: Rename sd_log_le_{revoke,ordered} 2019-05-07 23:39:14 +02:00
lops.c We've got the following patches ready for this merge window: 2019-05-08 13:16:07 -07:00
lops.h gfs2: read journal in large chunks 2019-05-07 23:39:15 +02:00
main.c gfs2: Replace gl_revokes with a GLF flag 2019-05-07 23:39:14 +02:00
Makefile
meta_io.c block: remove the i argument to bio_for_each_segment_all 2019-04-30 09:26:13 -06:00
meta_io.h
ops_fstype.c gfs2: read journal in large chunks 2019-05-07 23:39:15 +02:00
quota.c gfs2: Fix some minor typos 2018-10-12 07:31:21 -05:00
quota.h
recovery.c gfs2: read journal in large chunks 2019-05-07 23:39:15 +02:00
recovery.h gfs2: read journal in large chunks 2019-05-07 23:39:15 +02:00
rgrp.c gfs2: Rename gfs2_trans_{add_unrevoke => remove_revoke} 2019-05-07 23:39:14 +02:00
rgrp.h gfs2: Dump nrpages for inodes and their glocks 2018-12-12 12:33:23 +01:00
super.c gfs2: read journal in large chunks 2019-05-07 23:39:15 +02:00
super.h
sys.c gfs2: Fix error path kobject memory leak 2019-05-13 15:43:01 -07:00
sys.h
trace_gfs2.h
trans.c gfs2: Rename gfs2_trans_{add_unrevoke => remove_revoke} 2019-05-07 23:39:14 +02:00
trans.h gfs2: Rename gfs2_trans_{add_unrevoke => remove_revoke} 2019-05-07 23:39:14 +02:00
util.c gfs2: slow the deluge of io error messages 2018-10-05 10:51:11 -05:00
util.h gfs2: Use fs_* functions instead of pr_* function where we can 2018-10-05 11:16:54 -05:00
xattr.c gfs2: Rename gfs2_trans_{add_unrevoke => remove_revoke} 2019-05-07 23:39:14 +02:00
xattr.h