]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit26c26ba2d5ac86b8a466fef9f8270fbeff82bfb2
tree7e1889902d51d5b3eae6becf91d5031f347c5438
parentd4d3339c43e46763f1dadb5f6c3ca048d3905eab
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: 696f9ed2c91e ("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