Input: synaptics-rmi4 - fix error handling in SPI transport driver
authorGuenter Roeck <linux@roeck-us.net>
Tue, 4 Oct 2016 18:48:55 +0000 (11:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 4 Oct 2016 18:52:23 +0000 (11:52 -0700)
commitbbc2ceeb3220e54c7574f0b5e3a252fd9a62cf8a
tree7e1889902d51d5b3eae6becf91d5031f347c5438
parent574a62c93a663501fd545be9a72e6901089955e4
Input: synaptics-rmi4 - fix error handling in SPI transport driver

Instantiating the rmi4 SPI transport driver without an interrupt assigned
caused the driver to fail to load, but it does not clean up its transport
device registration. Result may be a crash at a later time, for example
when rebooting the system.

Fixes: 8d99758dee31 ("Input: synaptics-rmi4 - add SPI transport driver")
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_spi.c