projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b412b0
)
usb: dwc2: pci: Fix an error code in probe
author
Dan Carpenter
<dan.carpenter@oracle.com>
Thu, 18 Oct 2018 07:36:47 +0000
(10:36 +0300)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Wed, 14 Nov 2018 09:07:12 +0000
(11:07 +0200)
We added some error handling to this function but forgot to set the
error code on this path.
Fixes: ecd29dabb2ba ("usb: dwc2: pci: Handle error cleanup in probe")
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/pci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/dwc2/pci.c
b/drivers/usb/dwc2/pci.c
index d257c541e51ba4e51530e5d8c3d1048794f5f013..7afc10872f1f031370727a277180f664fe8e4c56 100644
(file)
--- a/
drivers/usb/dwc2/pci.c
+++ b/
drivers/usb/dwc2/pci.c
@@
-120,6
+120,7
@@
static int dwc2_pci_probe(struct pci_dev *pci,
dwc2 = platform_device_alloc("dwc2", PLATFORM_DEVID_AUTO);
if (!dwc2) {
dev_err(dev, "couldn't allocate dwc2 device\n");
+ ret = -ENOMEM;
goto err;
}