mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-21 00:39:33 +07:00
rtl8xxxu: Fix OOPS if user tries to add device via /sys
This driver relies on driver_info in struct usb_device_id, so allowing adding a device via /sys/bus/usb/drivers/rtl8xxxu/new_id will cause a NULL pointer dereference. Set .no_dynamic_id = 1 to disable hot add of USB IDs. Reported-by: Xose Vazquez Perez <xose.vazquez@gmail.com> Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
cabb550e2b
commit
6a62f9d527
@ -10141,6 +10141,7 @@ static struct usb_driver rtl8xxxu_driver = {
|
||||
.probe = rtl8xxxu_probe,
|
||||
.disconnect = rtl8xxxu_disconnect,
|
||||
.id_table = dev_table,
|
||||
.no_dynamic_id = 1,
|
||||
.disable_hub_initiated_lpm = 1,
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user