Skip to content
Snippets Groups Projects
Commit ef25706a authored by Karol Przybylski's avatar Karol Przybylski Committed by Frieder Schrempf
Browse files

HID: hid-thrustmaster: Fix warning in thrustmaster_probe by adding endpoint check

[ Upstream commit 50420d7c79c37a3efe4010ff9b1bb14bc61ebccf ]

syzbot has found a type mismatch between a USB pipe and the transfer
endpoint, which is triggered by the hid-thrustmaster driver[1].
There is a number of similar, already fixed issues [2].
In this case as in others, implementing check for endpoint type fixes the issue.

[1] https://syzkaller.appspot.com/bug?extid=040e8b3db6a96908d470
[2] https://syzkaller.appspot.com/bug?extid=348331f63b034f89b622



Fixes: c49c3363 ("HID: support for initialization of some Thrustmaster wheels")
Reported-by: default avatar <syzbot+040e8b3db6a96908d470@syzkaller.appspotmail.com>
Tested-by: default avatar <syzbot+040e8b3db6a96908d470@syzkaller.appspotmail.com>
Signed-off-by: default avatarKarol Przybylski <karprzy7@gmail.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent cd10bc87
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment