Files
Johan Hovold 646e5b28b4 USB: serial: fix driver deregistration order
USB serial driver modules register one driver for the USB bus and one or
more drivers for the ports on the USB serial bus.

When unloading a driver module, the USB driver must be deregistered
before the USB serial bus drivers so that I/O is stopped before
unbinding the ports to avoid use-after-free in completion handlers
accessing port data.

Note that the "new_id" attributes must first be removed to prevent new
ids from being added and triggering a probe of the USB driver after it
has been deregistered.

Fixes: 765e0ba626 ("usb-serial: new API for driver registration")
Cc: [email protected]	# 3.4
Cc: Alan Stern <[email protected]>
Signed-off-by: Johan Hovold <[email protected]>
2026-09-08 11:00:48 +02:00
..
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-02-27 19:27:31 -08:00
…
…
…
…
…
…
…
…