aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpi-sub-ui.c
diff options
context:
space:
mode:
authorYang Yingliang <[email protected]>2022-11-17 15:06:36 +0800
committerGreg Kroah-Hartman <[email protected]>2022-11-23 19:57:07 +0100
commit7b51161696e803fd5f9ad55b20a64c2df313f95c (patch)
tree37611e368b1feed63b0163a3f824fdf7e76e4592 /lib/mpi/mpi-sub-ui.c
parent3127a86a3702bd3a2ff43503d49919d666739ae8 (diff)
firmware: raspberrypi: fix possible memory leak in rpi_firmware_probe()
In rpi_firmware_probe(), if mbox_request_channel() fails, the 'fw' will not be freed through rpi_firmware_delete(), fix this leak by calling kfree() in the error path. Fixes: 1e7c57355a3b ("firmware: raspberrypi: Keep count of all consumers") Signed-off-by: Yang Yingliang <[email protected]> Link: https://lore.kernel.org/r/[email protected] Acked-by: Joel Savitz <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-sub-ui.c')
0 files changed, 0 insertions, 0 deletions