]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc2: pci: Fix error return code in dwc2_pci_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 28 Mar 2018 13:41:13 +0000 (13:41 +0000)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Wed, 25 Apr 2018 11:24:48 +0000 (14:24 +0300)
commite9c6cd691070c1a5f455041872b1de5a98a6c0b0
tree27a8ca7e86b3f3546b307a709f014a94c745a983
parent3ff84712fefd53b0015f6f1c9ebd9ac438087183
usb: dwc2: pci: Fix error return code in dwc2_pci_probe()

Fix to return error code -ENOMEM from the alloc fail error handling
case instead of 0, as done elsewhere in this function.

Fixes: 7fd43ab38ffd ("usb: dwc2: pci: Handle error cleanup in probe")
Reviewed-by: Grigor Tovmasyan <tovmasya@synopsys.com>
Acked-by: Minas Harutyunyan <hminas@synopsys.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
drivers/usb/dwc2/pci.c