mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
usb: host: xhci-tegra: Fix error return code in tegra_xusb_probe()
Fix to return error code -ENOMEM from the usb_create_shared_hcd() error handling case instead of 0, as done elsewhere in this function. Signed-off-by: Wei Yongjun <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
36ae6776e4
commit
b175b38a0f
1 changed files with 1 additions and 0 deletions
|
|
@ -1116,6 +1116,7 @@ static int tegra_xusb_probe(struct platform_device *pdev)
|
|||
tegra->hcd);
|
||||
if (!xhci->shared_hcd) {
|
||||
dev_err(&pdev->dev, "failed to create shared HCD\n");
|
||||
err = -ENOMEM;
|
||||
goto remove_usb2;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue