Skip to content
Commit 9302bead authored by Wei Yongjun's avatar Wei Yongjun Committed by Jakub Kicinski
Browse files

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: 3184fb5b

 ("octeontx2-vf: Virtual function driver support")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent db803036
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment