]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i40iw: Fix error handling in i40iw_manage_arp_cache()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 22 Apr 2020 09:22:11 +0000 (12:22 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 May 2020 06:15:36 +0000 (08:15 +0200)
commitc449481dc9eb52f5aa338246b6204ed1d03a0c7e
tree9f37f486f63d5899e96ac9cdf9581281edaa80fb
parente965c55d4ef594ff2426d204fbd58da0285be8db
i40iw: Fix error handling in i40iw_manage_arp_cache()

[ Upstream commit 37e31d2d26a4124506c24e95434e9baf3405a23a ]

The i40iw_arp_table() function can return -EOVERFLOW if
i40iw_alloc_resource() fails so we can't just test for "== -1".

Fixes: 4e9042e647ff ("i40iw: add hw and utils files")
Link: https://lore.kernel.org/r/20200422092211.GA195357@mwanda
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/infiniband/hw/i40iw/i40iw_hw.c