commit | 9302bead664f49ef73040fa06fa64552d02fee42 | [log] [tgz] |
---|---|---|
author | Wei Yongjun <weiyongjun1@huawei.com> | Fri May 08 02:15:19 2020 +0000 |
committer | Jakub Kicinski <kuba@kernel.org> | Fri May 08 22:22:13 2020 -0700 |
tree | 2fa5cb2705bf5fd7949966acda9f6b880c70f4c5 | |
parent | db803036ada7d61d096783726f9771b3fc540370 [diff] |
octeontx2-vf: Fix error return code in otx2vf_probe() Fix to return negative error code -ENOMEM from the alloc failed error handling case instead of 0, as done elsewhere in this function. Fixes: 3184fb5ba96e ("octeontx2-vf: Virtual function driver support") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>