summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorYueHaibing <yuehaibing@huawei.com>2019-12-28 19:54:55 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-02-14 16:32:06 -0500
commit7645d80ca740aeda9c6a80e1491976bd2c2ff331 (patch)
treedb6eb066ea0babc38701ae483ee6f8568caf44d9 /arch
parente0f8b8a65a473a8baa439cf865a694bbeb83fe90 (diff)
kernel/module: Fix memleak in module_add_modinfo_attrs()
[ Upstream commit f6d061d617124abbd55396a3bc37b9bf7d33233c ] 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: bc6f2a757d52 ("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>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions