Skip to content

Commit

Permalink
usb: dwc3: pci: fix another failure path in dwc3_pci_probe()
Browse files Browse the repository at this point in the history
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 <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Felipe Balbi authored and Greg Kroah-Hartman committed Mar 13, 2012
1 parent 8816230 commit 28f1a0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/usb/dwc3/dwc3-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 28f1a0d

Please sign in to comment.