summaryrefslogtreecommitdiffstats
path: root/drivers/hid/hid-roccat-lua.c
diff options
context:
space:
mode:
authorRodrigo Rivas Costa <rodrigorivascosta@gmail.com>2020-06-16 18:44:18 +0200
committerJiri Kosina <jkosina@suse.cz>2020-06-19 09:21:21 +0200
commit2d3f53a80e4eed078669853a178ed96d88f74143 (patch)
tree66100db26fb77704f9a1abb88aaddfc904a7f8e6 /drivers/hid/hid-roccat-lua.c
parentHID: magicmouse: do not set up autorepeat (diff)
downloadlinux-2d3f53a80e4eed078669853a178ed96d88f74143.tar.xz
linux-2d3f53a80e4eed078669853a178ed96d88f74143.zip
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>
Diffstat (limited to 'drivers/hid/hid-roccat-lua.c')
0 files changed, 0 insertions, 0 deletions