diff options
| author | Piotr Kwapulinski <[email protected]> | 2025-01-31 12:14:50 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-02-11 17:13:11 +0000 |
| commit | 61fb097f9a644407b9342a8169d0edef868612d7 (patch) | |
| tree | 64bd5b0ae91abbdc603dd5ef52e4f2ddceb08700 /drivers/net/ethernet/intel/igc/igc_main.c | |
| parent | idpf: call set_real_num_queues in idpf_open (diff) | |
| download | kernel-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
