[PATCH v2] input: raspberrypi-ts: Fix refcount leak in rpi_ts_probe

Dmitry Torokhov dmitry.torokhov at gmail.com
Thu Apr 13 23:06:10 PDT 2023


On Fri, Dec 23, 2022 at 11:46:53AM +0400, Miaoqian Lin wrote:
> rpi_firmware_get() take reference, we need to release it in error paths
> as well. Use devm_rpi_firmware_get() helper to handling the resources.
> Also remove the existing rpi_firmware_put().
> 
> Fixes: 0b9f28fed3f7 ("Input: add official Raspberry Pi's touchscreen driver")
> Fixes: 3b8ddff780b7 ("input: raspberrypi-ts: Release firmware handle when not needed")
> Signed-off-by: Miaoqian Lin <linmq006 at gmail.com>

Applied, thank you.

-- 
Dmitry



More information about the linux-arm-kernel mailing list