summaryrefslogtreecommitdiff
path: root/drivers/net/can/usb/gs_usb.c
diff options
context:
space:
mode:
authorArd Biesheuvel <ardb@kernel.org>2020-11-25 10:45:55 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-12-02 10:48:12 +0300
commitdb9e8d33b066d7022a4ed1c8fa16b6496cd651c3 (patch)
tree4da7d7690543d6d87c68d5098a1364340e62f7aa /drivers/net/can/usb/gs_usb.c
parentd6172283a4706aef3136d704e27b8446e879f010 (diff)
downloadlinux-db9e8d33b066d7022a4ed1c8fa16b6496cd651c3.tar.xz
efivarfs: revert "fix memory leak in efivarfs_create()"
[ Upstream commit ff04f3b6f2e27f8ae28a498416af2a8dd5072b43 ] The memory leak addressed by commit fe5186cf12e3 is a false positive: all allocations are recorded in a linked list, and freed when the filesystem is unmounted. This leads to double frees, and as reported by David, leads to crashes if SLUB is configured to self destruct when double frees occur. So drop the redundant kfree() again, and instead, mark the offending pointer variable so the allocation is ignored by kmemleak. Cc: Vamshi K Sthambamkadi <vamshi.k.sthambamkadi@gmail.com> Fixes: fe5186cf12e3 ("efivarfs: fix memory leak in efivarfs_create()") Reported-by: David Laight <David.Laight@aculab.com> Signed-off-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/net/can/usb/gs_usb.c')
0 files changed, 0 insertions, 0 deletions