octeontx2-vf: Fix error return code in otx2vf_probe()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 8 May 2020 02:15:19 +0000 (02:15 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 05:22:13 +0000 (22:22 -0700)
commit9302bead664f49ef73040fa06fa64552d02fee42
tree2fa5cb2705bf5fd7949966acda9f6b880c70f4c5
parentdb803036ada7d61d096783726f9771b3fc540370
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>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_vf.c