diff options
author | Miaoqian Lin | 2023-04-13 23:05:20 -0700 |
---|---|---|
committer | Greg Kroah-Hartman | 2023-05-11 23:03:35 +0900 |
commit | 36d087e49dabd28d2c13a7532dac72d625ce69fb (patch) | |
tree | d91afc9aab294efed579d537e4e5c9bf8ac54614 /virt | |
parent | ed90364b4299f72147acb73a0928a7a7d4ff88f2 (diff) |
Input: raspberrypi-ts - fix refcount leak in rpi_ts_probe
[ Upstream commit 5bca3688bdbc3b58a2894b8671a8e2378efe28bd ]
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@gmail.com>
Reviewed-by: Mattijs Korpershoek <mkorpershoek@baylibre.com>
Link: https://lore.kernel.org/r/20221223074657.810346-1-linmq006@gmail.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions