Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9890d377 authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "xhci: Fix NULL pointer dereference with xhci_irq() for shared_hcd"

parents fd34faf0 a6dbbf0e
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -407,10 +407,10 @@ static int xhci_plat_remove(struct platform_device *dev)


	device_remove_file(&dev->dev, &dev_attr_config_imod);
	device_remove_file(&dev->dev, &dev_attr_config_imod);
	usb_remove_hcd(shared_hcd);
	usb_remove_hcd(shared_hcd);
	xhci->shared_hcd = NULL;
	usb_phy_shutdown(hcd->usb_phy);
	usb_phy_shutdown(hcd->usb_phy);


	usb_remove_hcd(hcd);
	usb_remove_hcd(hcd);
	xhci->shared_hcd = NULL;
	usb_put_hcd(shared_hcd);
	usb_put_hcd(shared_hcd);


	clk_disable_unprepare(clk);
	clk_disable_unprepare(clk);