diff options
| author | Jann Horn <jannh@google.com> | 2026-07-03 17:45:53 +0200 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-08-03 20:42:08 +0200 |
| commit | 4cdb6b4b34d7823254f6e1b22faf56c96ac57fb9 (patch) | |
| tree | c38cb7a98dffc7a6d65e974243339269f3c11ec8 /tools/perf/scripts/python | |
| parent | 02bf61dfb44f17ec187d1da1a82495951bbd12df (diff) | |
HID: huawei: fix missing hid_is_usb() check
to_usb_interface() can only be used on a hid_device whose parent is really
USB; uhid can create devices that identify as being on BUS_USB, but don't
actually have a USB parent.
Fix the use of to_usb_interface() without a hid_is_usb() check.
I have verified that it is currently possible to trigger a kernel splat due
to this bug in an ASAN build, and that this commit fixes the issue.
Fixes: e93faaca84b7 ("HID: huawei: fix CD30 keyboard report descriptor issue")
Cc: stable@vger.kernel.org
Signed-off-by: Jann Horn <jannh@google.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
