1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/net/ethernet/intel/ixgbevf
Colin Ian King 39035bfdc3 ixgbevf: ensure xdp_ring resources are free'd on error exit
The current error handling for failed resource setup for xdp_ring
data is a break out of the loop and returning 0 indicated everything
was OK, when in fact it is not.  Fix this by exiting via the
error exit label err_setup_tx that will clean up the resources
correctly and return and error status.

Detected by CoverityScan, CID#1466879 ("Logically dead code")

Fixes: 21092e9ce8 ("ixgbevf: Add support for XDP_TX action")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2018-04-24 08:20:40 -07:00
..
defines.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
ethtool.c ixgbevf: Add XDP queue stats reporting 2018-03-23 15:22:11 -07:00
ixgbevf.h ixgbevf: Add support for XDP_TX action 2018-03-23 15:12:15 -07:00
ixgbevf_main.c ixgbevf: ensure xdp_ring resources are free'd on error exit 2018-04-24 08:20:40 -07:00
Makefile intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
mbx.c ixgbevf: ixgbevf_write/read_posted_mbx should use IXGBE_ERR_MBX to initialize ret_val 2016-06-29 09:18:06 -07:00
mbx.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
regs.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00
vf.c ixgbevf: use ARRAY_SIZE for various array sizing calculations 2018-01-26 10:25:15 -08:00
vf.h intel: add SPDX identifiers to all the Intel drivers 2018-03-23 12:18:21 -04:00