summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorQiushi Wu <wu000273@umn.edu>2020-05-28 21:38:04 +0300
committerSasha Levin <sashal@kernel.org>2020-06-30 22:38:03 +0300
commitcebee7673e1f366259fa96b4e29b1fd23e3f3b41 (patch)
tree688fe019250f0109f27c43a410a7376d00d5e8d8 /arch/arm
parenta174c8680117a17b30a8c54b3f2a62d5eff8cfe5 (diff)
downloadlinux-cebee7673e1f366259fa96b4e29b1fd23e3f3b41.tar.xz
efi/esrt: Fix reference count leak in esre_create_sysfs_entry.
[ Upstream commit 4ddf4739be6e375116c375f0a68bf3893ffcee21 ] kobject_init_and_add() takes reference even when it fails. If this function returns an error, kobject_put() must be called to properly clean up the memory associated with the object. Previous commit "b8eb718348b8" fixed a similar problem. Fixes: 0bb549052d33 ("efi: Add esrt support") Signed-off-by: Qiushi Wu <wu000273@umn.edu> Link: https://lore.kernel.org/r/20200528183804.4497-1-wu000273@umn.edu Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'arch/arm')
0 files changed, 0 insertions, 0 deletions