diff options
author | Roderick Colenbrander <roderick.colenbrander@sony.com> | 2017-02-24 16:14:15 -0800 |
---|---|---|
committer | Siarhei Vishniakou <svv@google.com> | 2019-11-07 11:14:01 -0600 |
commit | 5cbac92a650f5fbdc2b9408e4fcb9f4b835ee90a (patch) | |
tree | e6c5fb2a77bee8d9a090b06db6905ce0ced06f71 /include/uapi/linux/input.h | |
parent | 72c5358f0bc62a1428e54079a69456aa34d22c27 (diff) |
UPSTREAM: 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>
(cherry picked from commit a687c5765b5ae19fe559e14615ddc87ebb46d409)
Bug: 111431828
Signed-off-by: Kim Low <kim-huei.low@sony.com>
Change-Id: Iaf021a5624d96efca291c4890df89cb6ed1550b7
Signed-off-by: Siarhei Vishniakou <svv@google.com>
Diffstat (limited to 'include/uapi/linux/input.h')
0 files changed, 0 insertions, 0 deletions