summaryrefslogtreecommitdiff
path: root/rust/alloc/collections/git@git.tavy.me:linux.git
diff options
context:
space:
mode:
authorSamasth Norway Ananda <samasth.norway.ananda@oracle.com>2026-01-29 16:16:39 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-02-07 13:35:48 +0100
commit4dba9d6c691327f06276619ae97bab8aa48b2dbe (patch)
tree8bbd406ff01394ce40833eed2807cda2fad57d55 /rust/alloc/collections/git@git.tavy.me:linux.git
parenta6fe09b40b610ca0d459fdc53524cc923df0d2e1 (diff)
staging: rtl8723bs: fix firmware memory leak on error
After successfully calling request_firmware(), if the firmware size check fails or if kmemdup() fails, the code jumps to the exit label without calling release_firmware(), causing a memory leak. Call release_firmware() directly in each error path before jumping to cleanup label. Signed-off-by: Samasth Norway Ananda <samasth.norway.ananda@oracle.com> Reviewed-by: Dan Carpenter <dan.carpenter@linaro.org> Link: https://patch.msgid.link/20260130001641.17941-2-samasth.norway.ananda@oracle.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'rust/alloc/collections/git@git.tavy.me:linux.git')
0 files changed, 0 insertions, 0 deletions