commit | 2d3f53a80e4eed078669853a178ed96d88f74143 | [log] [tgz] |
---|---|---|
author | Rodrigo Rivas Costa <rodrigorivascosta@gmail.com> | Tue Jun 16 18:44:18 2020 +0200 |
committer | Jiri Kosina <jkosina@suse.cz> | Fri Jun 19 09:21:21 2020 +0200 |
tree | 66100db26fb77704f9a1abb88aaddfc904a7f8e6 | |
parent | 6363d2065cd399cf9d6dc9d08c437f8658831100 [diff] |
HID: steam: fixes race in handling device list. Using uhid and KASAN this driver crashed because it was getting several connection events where it only expected one. Then the device was added several times to the static device list and it got corrupted. This patch checks if the device is already in the list before adding it. Signed-off-by: Rodrigo Rivas Costa <rodrigorivascosta@gmail.com> Tested-by: Siarhei Vishniakou <svv@google.com> Signed-off-by: Jiri Kosina <jkosina@suse.cz>