WSL2-Linux-Kernel/drivers/input/touchscreen
Miaoqian Lin 7acad58049 Input: raspberrypi-ts - fix refcount leak in rpi_ts_probe
[ Upstream commit 5bca3688bd ]

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: 0b9f28fed3 ("Input: add official Raspberry Pi's touchscreen driver")
Fixes: 3b8ddff780 ("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>
2023-05-11 23:00:36 +09:00
..
88pm860x-ts.c
Kconfig Input: Fix spelling mistake in Kconfig "Modul" -> "Module" 2021-09-03 23:49:55 -07:00
Makefile
ad7877.c
ad7879-i2c.c
ad7879-spi.c
ad7879.c
ad7879.h
ads7846.c
ar1021_i2c.c
atmel_mxt_ts.c Input: atmel_mxt_ts - fix double free in mxt_read_info_block 2021-12-29 12:28:52 +01:00
auo-pixcir-ts.c
bcm_iproc_tsc.c
bu21013_ts.c
bu21029_ts.c
chipone_icn8318.c
chipone_icn8505.c
colibri-vf50-ts.c
cy8ctma140.c
cy8ctmg110_ts.c Input: cy8ctmg110_ts - switch to using gpiod API 2021-06-05 20:34:16 -07:00
cyttsp4_core.c
cyttsp4_core.h
cyttsp4_i2c.c
cyttsp4_spi.c
cyttsp_core.c Input: cyttsp - remove public header 2021-06-01 21:13:11 -07:00
cyttsp_core.h Input: cyttsp - remove public header 2021-06-01 21:13:11 -07:00
cyttsp_i2c.c Input: cyttsp - remove public header 2021-06-01 21:13:11 -07:00
cyttsp_i2c_common.c
cyttsp_spi.c Input: cyttsp - remove public header 2021-06-01 21:13:11 -07:00
da9034-ts.c
da9052_tsi.c
dynapro.c
edt-ft5x06.c Input: edt-ft5x06 - added case for EDT EP0110M09 2021-09-05 19:10:11 -07:00
eeti_ts.c
egalax_ts.c
egalax_ts_serial.c
ektf2127.c
elants_i2c.c Input: elants_i2c - properly handle the reset GPIO when power is off 2022-12-31 13:14:10 +01:00
elo.c
exc3000.c Input: exc3000 - fix return value check of wait_for_completion_timeout 2022-08-25 11:40:08 +02:00
fsl-imx25-tcq.c
fujitsu_ts.c
goodix.c Input: goodix - add Lenovo Yoga Book X90F to nine_bytes_report DMI table 2023-04-05 11:24:59 +02:00
goodix.h Input: goodix - try not to touch the reset-pin on x86/ACPI devices 2022-07-12 16:34:51 +02:00
gunze.c
hampshire.c
hideep.c Input: hideep - fix the uninitialized use in hideep_nvm_unlock() 2021-06-19 22:36:28 -07:00
hp680_ts_input.c
htcpen.c
hycon-hy46xx.c
ili210x.c Input: ili210x - fix reset timing 2022-05-25 09:57:36 +02:00
ilitek_ts_i2c.c
imx6ul_tsc.c
inexio.c
ipaq-micro-ts.c
iqs5xx.c
jornada720_ts.c
lpc32xx_ts.c
mainstone-wm97xx.c
max11801_ts.c
mc13783_ts.c
mcs5000_ts.c
melfas_mip4.c Input: melfas_mip4 - fix return value check in mip4_probe() 2022-10-05 10:39:42 +02:00
migor_ts.c
mk712.c
mms114.c Input: mms114 - support MMS134S 2021-09-06 23:33:26 -07:00
msg2638.c
mtouch.c
mxs-lradc-ts.c
pcap_ts.c
penmount.c
pixcir_i2c_ts.c
raspberrypi-ts.c Input: raspberrypi-ts - fix refcount leak in rpi_ts_probe 2023-05-11 23:00:36 +09:00
raydium_i2c_ts.c Input: raydium_ts_i2c - fix memory leak in raydium_i2c_send() 2022-12-08 11:28:45 +01:00
resistive-adc-touch.c Input: resistive-adc-touch - fix division by zero error on z1 == 0 2021-10-15 22:11:03 -07:00
rohm_bu21023.c
s3c2410_ts.c
s6sy761.c
silead.c
sis_i2c.c
st1232.c Input: st1232 - increase "wait ready" timeout 2021-11-18 19:17:01 +01:00
stmfts.c Input: stmfts - do not leave device disabled in stmfts_input_open 2022-06-09 10:23:13 +02:00
stmpe-ts.c
sun4i-ts.c
sur40.c
surface3_spi.c
sx8654.c
ti_am335x_tsc.c Input: ti_am335x_tsc - fix STEPCONFIG setup for Z2 2022-03-08 19:12:35 +01:00
touchit213.c
touchright.c
touchwin.c
tps6507x-ts.c
ts4800-ts.c
tsc40.c
tsc200x-core.c Input: tsc200x-core - use kobj_to_dev() 2021-06-19 22:36:23 -07:00
tsc200x-core.h
tsc2004.c
tsc2005.c
tsc2007.h
tsc2007_core.c
tsc2007_iio.c
ucb1400_ts.c
usbtouchscreen.c
wacom_i2c.c
wacom_w8001.c
wdt87xx_i2c.c
wm97xx-core.c
wm831x-ts.c
wm9705.c
wm9712.c
wm9713.c
zet6223.c
zforce_ts.c
zinitix.c Input: zinitix - do not report shadow fingers 2022-04-08 14:22:47 +02:00
zylonite-wm97xx.c