projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
755d739
)
USB: gadget: udc: Add missing platform_device_put() on error in bdc_pci_probe()
author
Wei Yongjun
<weiyongjun1@huawei.com>
Tue, 23 Jan 2018 09:35:14 +0000
(09:35 +0000)
committer
Felipe Balbi
<felipe.balbi@linux.intel.com>
Thu, 15 Feb 2018 13:28:13 +0000
(15:28 +0200)
Add the missing platform_device_put() before return from bdc_pci_probe()
in the platform_device_add_resources() error handling case.
Fixes: efed421a94e6 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/gadget/udc/bdc/bdc_pci.c
patch
|
blob
|
history
diff --git
a/drivers/usb/gadget/udc/bdc/bdc_pci.c
b/drivers/usb/gadget/udc/bdc/bdc_pci.c
index 1e940f054cb8c41cb2150cd621eae1580f256bec..6dbc489513cdbbc5564598b0be10b2fce668c1e2 100644
(file)
--- a/
drivers/usb/gadget/udc/bdc/bdc_pci.c
+++ b/
drivers/usb/gadget/udc/bdc/bdc_pci.c
@@
-77,6
+77,7
@@
static int bdc_pci_probe(struct pci_dev *pci, const struct pci_device_id *id)
if (ret) {
dev_err(&pci->dev,
"couldn't add resources to bdc device\n");
+ platform_device_put(bdc);
return ret;
}