diff options
| author | Roderick Colenbrander <roderick.colenbrander@sony.com> | 2016-11-23 14:07:06 -0800 |
|---|---|---|
| committer | Siarhei Vishniakou <svv@google.com> | 2019-11-07 11:13:24 -0600 |
| commit | 460438f93297b3aaf29ba6387b251a9e4260e21e (patch) | |
| tree | b51d6a62530f9f247ef4f47094939cbbf5f48bf5 /tools/perf/scripts/python/bin | |
| parent | d52c9b0f7b75a950139b82acb2891e07c4e2b774 (diff) | |
UPSTREAM: HID: sony: Fix memory issue when connecting device using both Bluetooth and USB
A previous patch moved most input initialization from sony_probe to
sony_input_configured to avoid some race conditions. The driver has some
special logic to prevent the device to get registered twice in case the
user connects it both over Bluetooth and USB. When this condition
happens sony_input_configured returns a failure, but sony_probe continues
as hid_hw_start doesn't fail. As was discussed on linux-input, it is
acceptable for this function to fail.
This patch adds a check for the HID_CLAIMED_INPUT flag within sony_probe
to determine whether initialization succeeded correctly. The flag is
not set by the HID layer when sony_input_configured fails.
Signed-off-by: Roderick Colenbrander <roderick.colenbrander@sony.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
(cherry picked from commit 4f967f6d73746f66514528cc1191025f0b5d69b3)
Bug: 111431828
Signed-off-by: Kim Low <kim-huei.low@sony.com>
Change-Id: I894f9cb08c672a769975aa5ecf062ee920e55785
Signed-off-by: Siarhei Vishniakou <svv@google.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
