Skip to content
Commit b4ecc15d authored by Jonathan Liu's avatar Jonathan Liu Committed by Greg Kroah-Hartman
Browse files

usb: musb: sunxi: Explicitly release USB PHY on exit



commit 6ed05c68 upstream.

This fixes a kernel oops when unloading the driver due to usb_put_phy
being called after usb_phy_generic_unregister when the device is
detached. Calling usb_phy_generic_unregister causes x->dev->driver to
be NULL in usb_put_phy and results in a NULL pointer dereference.

Signed-off-by: default avatarJonathan Liu <net147@gmail.com>
Signed-off-by: default avatarBin Liu <b-liu@ti.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 09fad6f2
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment