diff options
author | Colin Ian King <[email protected]> | 2018-03-27 15:21:48 +0100 |
---|---|---|
committer | Jeff Kirsher <[email protected]> | 2018-04-24 08:20:40 -0700 |
commit | 39035bfdc3f18987aba04165060bfbfa10ffc1cd (patch) | |
tree | abb46089a85dbd46afdf7f60550b32c0b35031dd /lib/string_helpers.c | |
parent | 9cf2f437ca5b39828984064fad213e68fc17ef11 (diff) |
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: 21092e9ce8b1 ("ixgbevf: Add support for XDP_TX action")
Signed-off-by: Colin Ian King <[email protected]>
Tested-by: Andrew Bowers <[email protected]>
Signed-off-by: Jeff Kirsher <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions