]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:50 +0000 (10:51 +0100)
commit6ac4e06b717fc2e4ad5301799b4795076c31c351
tree0a24774d07fef6b7c8951a840e1132a8a44bdce7
parentd3716f1b3e4b3f8347e44bbfc18c4e9445a50c34
Input: synaptics-rmi4 - fix error handling in I2C transport driver

commit 261d7794c49b9a3bb5115c5ffc452e00f969bf43 upstream.

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: 946c8432aab0 ("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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/rmi4/rmi_i2c.c