Roderick Colenbrander a687c5765b HID: sony: Fix input device leak when connecting a DS4 twice using USB/BT
When a user connects a DS4 twice using USB and BT, we reject the
second device connection after the setup work. We then perform
a cleanup, but during cleanup we are not removing the touchpad
device. This leads to leakage of an input device, which we would
never remove. It can likely result into a kernel oops as well
when the touchpad evdev node is accessed and the underlaying HID
device has been removed from the system.

[jkosina@suse.cz: added stable annotation]
Fixes: ac797b95f532 ("HID: sony: Make the DS4 touchpad a separate device")
Cc: stable@vger.kernel.org
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
2017-03-06 14:43:16 +01:00
..
2017-02-20 16:42:43 -08:00
2016-12-25 10:47:44 +01:00
2016-12-18 15:49:10 -08:00
2017-02-20 16:42:43 -08:00
2016-12-25 10:47:44 +01:00
2016-12-25 17:21:22 +01:00
2017-02-16 10:22:41 -08:00
2017-01-26 17:49:14 +02:00
2016-12-15 12:46:48 -08:00
2016-12-25 10:47:44 +01:00
2016-12-14 10:49:33 -08:00
2016-12-15 11:45:13 -08:00
2017-02-03 13:46:38 -08:00
2017-02-11 09:01:03 -08:00
2017-02-20 16:42:43 -08:00
2016-12-24 11:27:45 -08:00