Re: [PATCH v2] input: raspberrypi-ts: Fix refcount leak in rpi_ts_probe
From: Dmitry Torokhov
Date: Fri Apr 14 2023 - 02:06:19 EST
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@xxxxxxxxx>
Applied, thank you.
--
Dmitry