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

nfp: abm: fix error return code in nfp_abm_vnic_alloc()



Fix to return negative error code -ENOMEM from the kzalloc() error
handling case instead of 0, as done elsewhere in this function.

Fixes: 174ab544 ("nfp: abm: add cls_u32 offload for simple band classification")
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 1f8492df
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