Files
twx-linux/kernel
YueHaibing bdfaaf35ac kernel/module: Fix memleak in module_add_modinfo_attrs()
[ Upstream commit f6d061d617 ]

In module_add_modinfo_attrs() if sysfs_create_file() fails
on the first iteration of the loop (so i = 0), we forget to
free the modinfo_attrs.

Fixes: bc6f2a757d ("kernel/module: Fix mem leak in module_add_modinfo_attrs")
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Jessica Yu <jeyu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-02-11 04:33:50 -08:00
..
2019-12-13 08:51:11 +01:00
2019-05-31 06:46:17 -07:00
2019-12-01 09:17:17 +01:00
…
…
2018-04-27 14:34:51 +02:00
2019-12-01 09:17:38 +01:00
…
…
…
…
…
2019-01-13 09:51:06 +01:00
…
…
2018-07-03 09:20:44 +02:00
…
2020-01-09 10:18:59 +01:00
…
2018-06-07 16:56:28 -04:00
…