]> git.baikalelectronics.ru Git - kernel.git/commit
Input: synaptics-rmi4 - fix error handling in I2C transport driver
authorGuenter Roeck <linux@roeck-us.net>
Tue, 4 Oct 2016 18:50:54 +0000 (11:50 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 4 Oct 2016 18:52:24 +0000 (11:52 -0700)
commit24fb4ef296f6b10a4a4969fd7cc84781ce0d4eb0
tree936e7c8905f38587bc5190c5fb3711f896623aca
parent4ef95539fdaee6ab949174778aaf6e365603968a
Input: synaptics-rmi4 - fix error handling in I2C transport driver

Instantiating the rmi4 I2C transport driver without interrupts assigned
(for example using manual i2c instantiation from the command line)
caused the driver to fail to load, but it does not clean up its regulator
or transport device registrations. Result is a crash at a later time,
for example when rebooting the system.

Fixes: 5c4a8eba6772 ("Input: synaptics-rmi4 - support regulator supplies")
Cc: Bjorn Andersson <bjorn.andersson@linaro.org>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/rmi4/rmi_i2c.c