]> www.infradead.org Git - users/dwmw2/linux.git/commit
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, 24 Jun 2020 15:48:45 +0000 (17:48 +0200)
commit7737ce3e0949aa0c505885184c361d4915014c98
tree56b09c49b836b57f0e21373c5acc461e82ca4c4e
parentcd96215fb3ac339e4a3b0903187af0c55ebf32f5
USB: ohci-sm501: fix error return code in ohci_hcd_sm501_drv_probe()

[ Upstream commit b919e077cccfbb77beb98809568b2fb0b4d113ec ]

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