OSDN Git Service

USB: ohci-sm501: fix error return code in ohci_hcd_sm501_drv_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 6 May 2020 13:56:25 +0000 (13:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 13 May 2020 12:20:01 +0000 (14:20 +0200)
commitb919e077cccfbb77beb98809568b2fb0b4d113ec
tree8c27d501a77225460ff74198af5e0c675cff7eb7
parentc856b4b0fdb5044bca4c0acf9a66f3b5cc01a37a
USB: ohci-sm501: fix error return code in ohci_hcd_sm501_drv_probe()

Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: 7d9e6f5aebe8 ("usb: host: ohci-sm501: init genalloc for local memory")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Acked-by: Alan Stern <stern@rowland.harvard.edu>
Link: https://lore.kernel.org/r/20200506135625.106910-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/ohci-sm501.c