forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commit7a2f297
usbip: Implement a match function to fix usbip
Commit88b7381 ("USB: Select better matching USB drivers whenavailable") introduced the use of a "match" function to select anon-generic/better driver for a particular USB device. Thisunfortunately breaks the operation of usbip in general, as reported inthe kernel bugzilla with bug 208267 (linked below).Upon inspecting the aforementioned commit, one can observe that theoriginal code in the usb_device_match function used to return 1unconditionally, but the aforementioned commit makes the usb_device_matchfunction use identifier tables and "match" virtual functions, if either ofthem are available.Hence, this commit implements a match function for usbip thatunconditionally returns true to ensure that usbip is functional again.This change has been verified to restore usbip functionality, with av5.7.y kernel on an up-to-date version of Qubes OS 4.0, which usesusbip to redirect USB devices between VMs.Thanks to Jonathan Dieter for the effort in bisecting this issue downto the aforementioned commit.Fixes:88b7381 ("USB: Select better matching USB drivers when available")Link:https://bugzilla.kernel.org/show_bug.cgi?id=208267Link:https://bugzilla.redhat.com/show_bug.cgi?id=1856443Link:QubesOS/qubes-issues#5905Signed-off-by: M. Vefa Bicakci <m.v.b@runbox.com>Cc: <stable@vger.kernel.org> # 5.7Cc: Valentina Manea <valentina.manea.m@gmail.com>Cc: Alan Stern <stern@rowland.harvard.edu>Reviewed-by: Bastien Nocera <hadess@hadess.net>Reviewed-by: Shuah Khan <skhan@linuxfoundation.org>Link:https://lore.kernel.org/r/20200810160017.46002-1-m.v.b@runbox.comSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parentd66a57b commit7a2f297
1 file changed
+6
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
461 | 461 | | |
462 | 462 | | |
463 | 463 | | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
464 | 469 | | |
465 | 470 | | |
466 | 471 | | |
| |||
486 | 491 | | |
487 | 492 | | |
488 | 493 | | |
| 494 | + | |
489 | 495 | | |
490 | 496 | | |
491 | 497 | | |
| |||
0 commit comments
Comments
(0)