aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/moduleloader.h
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-06-11 23:00:07 +0800
committerJessica Yu <jeyu@kernel.org>2019-06-14 09:31:09 +0200
commitbc6f2a757d525e001268c3658bd88822e768f8db (patch)
treef09e5ab8d7614581bff9607a8757cd5f58e753e0 /include/linux/moduleloader.h
parentkernel: module: Use struct_size() helper (diff)
downloadwireguard-linux-bc6f2a757d525e001268c3658bd88822e768f8db.tar.xz
wireguard-linux-bc6f2a757d525e001268c3658bd88822e768f8db.zip
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 'include/linux/moduleloader.h')
0 files changed, 0 insertions, 0 deletions