commit | bc6f2a757d525e001268c3658bd88822e768f8db | [log] [tgz] |
---|---|---|
author | YueHaibing <yuehaibing@huawei.com> | Tue Jun 11 23:00:07 2019 +0800 |
committer | Jessica Yu <jeyu@kernel.org> | Fri Jun 14 09:31:09 2019 +0200 |
tree | f09e5ab8d7614581bff9607a8757cd5f58e753e0 | |
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>