]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: abm: fix error return code in nfp_abm_vnic_alloc()
authorWei Yongjun <weiyongjun1@huawei.com>
Fri, 8 May 2020 07:27:35 +0000 (07:27 +0000)
committerJakub Kicinski <kuba@kernel.org>
Sat, 9 May 2020 01:39:36 +0000 (18:39 -0700)
commit1c442888cb76fceecf06d484e870db39be1fc903
treeb48d4ab601bbf3b84ebf82caa5756703f26072f3
parent2a41d51e4c3c1dfb24cc79ebb9a03023cf21ccda
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: 5ce632229d56 ("nfp: abm: add cls_u32 offload for simple band classification")
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/netronome/nfp/abm/main.c