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

Commit e5a72ad3 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3-msm: Fix memory leak of dwc3 child device"

parents 694b209e 47c515db
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -3735,6 +3735,7 @@ static int dwc3_msm_probe(struct platform_device *pdev)
	if (cpu_to_affin)
		unregister_cpu_notifier(&mdwc->dwc3_cpu_notifier);
put_dwc3:
	platform_device_put(mdwc->dwc3);
	if (mdwc->bus_perf_client)
		msm_bus_scale_unregister_client(mdwc->bus_perf_client);

@@ -3788,6 +3789,7 @@ static int dwc3_msm_remove(struct platform_device *pdev)

	if (mdwc->hs_phy)
		mdwc->hs_phy->flags &= ~PHY_HOST_MODE;
	platform_device_put(mdwc->dwc3);
	of_platform_depopulate(&pdev->dev);

	pm_runtime_disable(mdwc->dev);