linux-stable/drivers/input/joystick
Navid Emamdoost 79f0890459 Input: Fix memory leak in psxpad_spi_probe
In the implementation of psxpad_spi_probe() the allocated memory for
pdev is leaked if psxpad_spi_init_ff() or input_register_polled_device()
fail. The solution is using device managed allocation, like the one used
for pad. Perform the allocation using
devm_input_allocate_polled_device().

Fixes: 8be193c7b1 ("Input: add support for PlayStation 1/2 joypads connected via SPI")
Signed-off-by: Navid Emamdoost <navid.emamdoost@gmail.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-12-13 08:52:40 +01:00
..
iforce Input: iforce - add sanity checks 2019-08-25 10:47:49 +02:00
a3d.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
adi.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
amijoy.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
analog.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
as5011.c Input: as5011 - avoid using __set_bit() for capabilities 2018-05-08 15:36:02 -07:00
cobra.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
db9.c Input: mark expected switch fall-throughs 2018-08-08 11:23:27 -07:00
gamecon.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
gf2k.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
grip.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
grip_mp.c
guillemot.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
interact.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
joydump.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/dtor/input 2018-08-18 16:48:07 -07:00
Kconfig docs: Fix some broken references 2018-06-15 18:10:01 -03:00
magellan.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
Makefile Input: pxrc - new driver for PhoenixRC Flight Controller Adapter 2018-03-26 15:22:20 -07:00
maplecontrol.c
psxpad-spi.c Input: Fix memory leak in psxpad_spi_probe 2019-12-13 08:52:40 +01:00
pxrc.c Input: pxrc - flatten probe code 2018-07-25 19:04:19 +00:00
sidewinder.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
spaceball.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
spaceorb.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
stinger.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
tmdc.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
turbografx.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
twidjoy.c Input: twidjoy - constify serio_device_id 2017-08-18 17:14:15 -07:00
walkera0701.c docs: Fix some broken references 2018-06-15 18:10:01 -03:00
warrior.c Input: stop telling users to snail-mail Vojtech 2018-07-26 17:04:37 -07:00
xpad.c Input: xpad - add support for SteelSeries Stratus Duo 2019-01-31 08:14:37 +01:00
zhenhua.c Input: zhenhua - constify serio_device_id 2017-08-18 17:14:17 -07:00