forked fromtorvalds/linux
- Notifications
You must be signed in to change notification settings - Fork0
Commitd5643d2
USB: Fix device driver race
When a new device with a specialised device driver is plugged in, thenew driver will be modprobe()'d but the driver core will attach the"generic" driver to the device.After that, nothing will trigger a reprobe when the modprobe()'d devicedriver has finished initialising, as the device has the "generic"driver attached to it.Trigger a reprobe ourselves when new specialised drivers get registered.Fixes:88b7381 ("USB: Select better matching USB drivers when available")Signed-off-by: Bastien Nocera <hadess@hadess.net>Cc: stable <stable@vger.kernel.org>Acked-by: Alan Stern <stern@rowland.harvard.edu>Link:https://lore.kernel.org/r/20200818110445.509668-3-hadess@hadess.netSigned-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parentadb6e6a commitd5643d2
1 file changed
+38
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
905 | 905 | | |
906 | 906 | | |
907 | 907 | | |
| 908 | + | |
| 909 | + | |
| 910 | + | |
| 911 | + | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
| 916 | + | |
| 917 | + | |
| 918 | + | |
| 919 | + | |
| 920 | + | |
| 921 | + | |
| 922 | + | |
| 923 | + | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
| 927 | + | |
| 928 | + | |
| 929 | + | |
| 930 | + | |
| 931 | + | |
| 932 | + | |
| 933 | + | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
908 | 937 | | |
909 | 938 | | |
910 | 939 | | |
| |||
934 | 963 | | |
935 | 964 | | |
936 | 965 | | |
937 | | - | |
| 966 | + | |
938 | 967 | | |
939 | 968 | | |
940 | | - | |
| 969 | + | |
| 970 | + | |
| 971 | + | |
| 972 | + | |
| 973 | + | |
| 974 | + | |
| 975 | + | |
941 | 976 | | |
942 | 977 | | |
943 | 978 | | |
| 979 | + | |
944 | 980 | | |
945 | 981 | | |
946 | 982 | | |
| |||
0 commit comments
Comments
(0)