projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36ae677
)
usb: host: xhci-tegra: Fix error return code in tegra_xusb_probe()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Sat, 10 Sep 2016 11:54:03 +0000
(11:54 +0000)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Tue, 13 Sep 2016 15:24:24 +0000
(17:24 +0200)
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>
drivers/usb/host/xhci-tegra.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci-tegra.c
b/drivers/usb/host/xhci-tegra.c
index d39b37be71f01fdda4d0e0704d0e099051ac3097..a59fafb4b329f532be52773c53a874b00cae789a 100644
(file)
--- 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;
}