diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-06-11 23:00:07 +0800 |
---|---|---|
committer | Jessica Yu <jeyu@kernel.org> | 2019-06-14 09:31:09 +0200 |
commit | bc6f2a757d525e001268c3658bd88822e768f8db (patch) | |
tree | f09e5ab8d7614581bff9607a8757cd5f58e753e0 /kernel/debug/debug_core.c | |
parent | 8d1b73dd25ff92c3fa9807a20c22fa2b44c07336 (diff) |
kernel/module: Fix mem leak in module_add_modinfo_attrs
In module_add_modinfo_attrs if sysfs_create_file
fails, we forget to free allocated modinfo_attrs
and roll back the sysfs files.
Fixes: 03e88ae1b13d ("[PATCH] fix module sysfs files reference counting")
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Diffstat (limited to 'kernel/debug/debug_core.c')
0 files changed, 0 insertions, 0 deletions