]> git.baikalelectronics.ru Git - kernel.git/commit
bus: mhi: core: Fix some error return code
authorWei Yongjun <weiyongjun1@huawei.com>
Sat, 9 May 2020 07:56:54 +0000 (07:56 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 14:32:20 +0000 (16:32 +0200)
commitca954001d0d5a1fa0023fde7c10655f12a9c5188
tree9155b3088809aa915d19cdf39790e35df9c4db7d
parentda25e1b928459b3ae0f536221bd6688547719dfe
bus: mhi: core: Fix some error return code

Fix to return negative error code from the error handling case
instead of 0 in mhi_init_dev_ctxt() and mhi_driver_probe().

Fixes: 8011e4fb4660 ("bus: mhi: core: Add support for basic PM operations")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Manivannan Sadhasivam <manivannan.sadhasivam@linaro.org>
Link: https://lore.kernel.org/r/20200509075654.175002-1-weiyongjun1@huawei.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/mhi/core/init.c