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:
|
||
---|---|---|
.. | ||
defines.h | ||
ethtool.c | ||
ixgbevf.h | ||
ixgbevf_main.c | ||
Makefile | ||
mbx.c | ||
mbx.h | ||
regs.h | ||
vf.c | ||
vf.h |