aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/igc/igc_main.c
diff options
context:
space:
mode:
authorPiotr Kwapulinski <[email protected]>2025-01-31 12:14:50 +0000
committerTony Nguyen <[email protected]>2025-02-11 17:13:11 +0000
commit61fb097f9a644407b9342a8169d0edef868612d7 (patch)
tree64bd5b0ae91abbdc603dd5ef52e4f2ddceb08700 /drivers/net/ethernet/intel/igc/igc_main.c
parentidpf: call set_real_num_queues in idpf_open (diff)
downloadkernel-61fb097f9a644407b9342a8169d0edef868612d7.tar.gz
kernel-61fb097f9a644407b9342a8169d0edef868612d7.zip
ixgbe: Fix possible skb NULL pointer dereference
The commit c824125cbb18 ("ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()") stopped utilizing the ERR-like macros for xdp status encoding. Propagate this logic to the ixgbe_put_rx_buffer(). The commit also relaxed the skb NULL pointer check - caught by Smatch. Restore this check. Fixes: c824125cbb18 ("ixgbe: Fix passing 0 to ERR_PTR in ixgbe_run_xdp()") Reported-by: Dan Carpenter <[email protected]> Closes: https://lore.kernel.org/intel-wired-lan/[email protected]/ Acked-by: Maciej Fijalkowski <[email protected]> Signed-off-by: Piotr Kwapulinski <[email protected]> Reviewed-by: Simon Horman <[email protected]> Tested-by: Saritha Sanigani <[email protected]> (A Contingent Worker at Intel) Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igc/igc_main.c')
0 files changed, 0 insertions, 0 deletions