]> git.baikalelectronics.ru Git - kernel.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)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 4 May 2020 17:12:35 +0000 (14:12 -0300)
commit193fb83032ca44aed305ddaaa3c9b4eccd31f44e
tree6e50a04775b2e89a48ac430d8d7e000013902dc2
parent8ecc5738678b2f445f0371be7f844ee9bb84f61d
i40iw: Fix error handling in i40iw_manage_arp_cache()

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

Fixes: 59999859a36e ("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>
drivers/infiniband/hw/i40iw/i40iw_hw.c