usb: dwc2: pci: Fix an error code in probe
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 18 Oct 2018 07:36:47 +0000 (10:36 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Dec 2018 08:16:11 +0000 (09:16 +0100)
commit3355199746b89d6e92d83e788b36ce1fe4a98813
tree1abc9be471ea89ac9d40ae62ca9de17f261850a6
parent4f22a32f555d1088165ae089e8d92ca3baadc61f
usb: dwc2: pci: Fix an error code in probe

[ Upstream commit 3c135e8900199e3b9375c1eff808cceba2ee37de ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/usb/dwc2/pci.c