Home
last modified time | relevance | path

Searched hist:"7 b51161696e803fd5f9ad55b20a64c2df313f95c" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/firmware/
H A Draspberrypi.cdiff 7b51161696e803fd5f9ad55b20a64c2df313f95c Thu Nov 17 01:06:36 CST 2022 Yang Yingliang <yangyingliang@huawei.com> 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 <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221117070636.3849773-1-yangyingliang@huawei.com
Acked-by: Joel Savitz <jsavitz@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>