Repository navigation
Commit 889c391
committed
HID: wacom: fix problems when device is not a valid USB device
commit 720ac46 upstream.
The wacom driver accepts devices of more than just USB types, but some
code paths can cause problems if the device being controlled is not a
USB device due to a lack of checking. Add the needed checks to ensure
that the USB device accesses are only happening on a "real" USB device,
and not one on some other bus.
Cc: Jiri Kosina <jikos@kernel.org>
Cc: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Cc: linux-input@vger.kernel.org
Cc: stable@vger.kernel.org
Tested-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Link: https://lore.kernel.org/r/20211201183503.2373082-2-gregkh@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 6272b17 commit 889c391
1 file changed
Lines changed: 12 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
726 | 726 | | |
727 | 727 | | |
728 | 728 | | |
729 | | - | |
| 729 | + | |
730 | 730 | | |
731 | 731 | | |
732 | 732 | | |
| |||
2448 | 2448 | | |
2449 | 2449 | | |
2450 | 2450 | | |
| 2451 | + | |
| 2452 | + | |
| 2453 | + | |
2451 | 2454 | | |
2452 | 2455 | | |
2453 | 2456 | | |
| |||
2727 | 2730 | | |
2728 | 2731 | | |
2729 | 2732 | | |
2730 | | - | |
2731 | | - | |
2732 | 2733 | | |
2733 | 2734 | | |
2734 | 2735 | | |
| |||
2763 | 2764 | | |
2764 | 2765 | | |
2765 | 2766 | | |
2766 | | - | |
2767 | | - | |
| 2767 | + | |
| 2768 | + | |
| 2769 | + | |
| 2770 | + | |
| 2771 | + | |
| 2772 | + | |
| 2773 | + | |
| 2774 | + | |
2768 | 2775 | | |
2769 | 2776 | | |
2770 | 2777 | | |
| |||
0 commit comments