diff options
author | Wei Yongjun <weiyongjun1@huawei.com> | 2016-09-10 14:54:03 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-09-13 18:24:24 +0300 |
commit | b175b38a0fa6767e1eae2e94b9d5f81d7342850a (patch) | |
tree | 8a8cd22df82e8192b5f857b71c77c342511fddac /drivers/usb/host | |
parent | 36ae6776e42de0f9c3d5039dad466642fa2341fa (diff) | |
download | linux-b175b38a0fa6767e1eae2e94b9d5f81d7342850a.tar.xz |
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 <weiyongjun1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/host')
-rw-r--r-- | drivers/usb/host/xhci-tegra.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/usb/host/xhci-tegra.c b/drivers/usb/host/xhci-tegra.c index d39b37be71f0..a59fafb4b329 100644 --- a/drivers/usb/host/xhci-tegra.c +++ b/drivers/usb/host/xhci-tegra.c @@ -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; } |