From 28f1a0d946774edc77c33ab62a564aa34828472d Mon Sep 17 00:00:00 2001 From: Felipe Balbi Date: Mon, 12 Mar 2012 16:41:19 +0200 Subject: [PATCH] usb: dwc3: pci: fix another failure path in dwc3_pci_probe() When applying commit 7d26b58 (fix failure path in dwc3_pci_probe()), I mistakenly left out one of the possible failures where we would return success even on the error case. This patch fixes that mistake. Signed-off-by: Felipe Balbi Signed-off-by: Greg Kroah-Hartman --- drivers/usb/dwc3/dwc3-pci.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/usb/dwc3/dwc3-pci.c b/drivers/usb/dwc3/dwc3-pci.c index dcc6479..20d0c8a 100644 --- a/drivers/usb/dwc3/dwc3-pci.c +++ b/drivers/usb/dwc3/dwc3-pci.c @@ -89,6 +89,7 @@ static int __devinit dwc3_pci_probe(struct pci_dev *pci, dwc3 = platform_device_alloc("dwc3", devid); if (!dwc3) { dev_err(dev, "couldn't allocate dwc3 device\n"); + ret = -ENOMEM; goto err1; } -- 2.7.4