diff options
author | 2021-04-09 15:24:28 +0300 | |
---|---|---|
committer | 2021-04-09 16:48:29 -0700 | |
commit | 626b598aa8becc95ad1c56e721c90ddfc6a8c409 (patch) | |
tree | c209b9b4cdb13216b5650217bdff6d1a67e189c2 /drivers/net/ethernet/mellanox | |
parent | cxgb4: remove unneeded if-null-free check (diff) | |
download | linux-626b598aa8becc95ad1c56e721c90ddfc6a8c409.tar.gz linux-626b598aa8becc95ad1c56e721c90ddfc6a8c409.tar.bz2 linux-626b598aa8becc95ad1c56e721c90ddfc6a8c409.zip |
net: enetc: fix array underflow in error handling code
This loop will try to unmap enetc_unmap_tx_buff[-1] and crash.
Fixes: 9d2b68cc108d ("net: enetc: add support for XDP_REDIRECT")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Reviewed-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/YHBHfCY/yv3EnM9z@mwanda
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet/mellanox')
0 files changed, 0 insertions, 0 deletions