kernel_samsung_a53x/drivers/input
Dan Carpenter 2fd5e1b202 Input: synaptics-rmi4 - fix use after free in rmi_unregister_function()
[ Upstream commit eb988e46da2e4eae89f5337e047ce372fe33d5b1 ]

The put_device() calls rmi_release_function() which frees "fn" so the
dereference on the next line "fn->num_of_irqs" is a use after free.
Move the put_device() to the end to fix this.

Fixes: 24d28e4f1271 ("Input: synaptics-rmi4 - convert irq distribution to irq_domain")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://lore.kernel.org/r/706efd36-7561-42f3-adfa-dd1d0bd4f5a1@moroto.mountain
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-18 11:43:07 +01:00
..
gameport Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input_boost Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
joystick Input: xpad - add PXN V900 support 2024-11-08 11:25:50 +01:00
keyboard Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
misc Input: powermate - fix use-after-free in powermate_config_complete 2024-11-08 11:25:50 +01:00
mouse Input: synaptics-rmi4 - handle reset delay when using SMBus trsnsport 2024-11-18 10:58:46 +01:00
rmi4 Input: synaptics-rmi4 - fix use after free in rmi_unregister_function() 2024-11-18 11:43:07 +01:00
sec_input Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
serio Input: i8042 - add Fujitsu Lifebook E5411 to i8042 quirk table 2024-11-08 11:25:50 +01:00
tablet Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
touchscreen Input: goodix - ensure int GPIO is in input for gpio_count == 1 && gpio_int_idx == 0 case 2024-11-08 11:25:50 +01:00
apm-power.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evbug.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
evdev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ff-core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ff-memless.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-compat.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-compat.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-leds.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-mt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-polldev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-poller.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input-poller.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
input.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
joydev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
matrix-keymap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mousedev.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sparse-keymap.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00