c3dde73859
commit 1848a543191ae32e558bb0a5974ae7c38ebd86fc upstream.
Free the sw structure only after we are done using it.
This patch just moves the put_device() down a bit to avoid the
use after free.
Fixes:
|
||
---|---|---|
.. | ||
class.c | ||
intel-xhci-usb-role-switch.c | ||
Kconfig | ||
Makefile |