diff options
| author | Yue Haibing <[email protected]> | 2025-01-06 22:19:16 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-01-08 02:15:51 +0000 |
| commit | 8b6237e1f4d405737237882a19ee5f316763dff7 (patch) | |
| tree | f82aca38327789a2638b7f2cc25e19e6e05f3605 /drivers/net/ethernet/intel/igb/igb_main.c | |
| parent | igc: Allow hot-swapping XDP program (diff) | |
| download | kernel-8b6237e1f4d405737237882a19ee5f316763dff7.tar.gz kernel-8b6237e1f4d405737237882a19ee5f316763dff7.zip | |
igc: Fix passing 0 to ERR_PTR in igc_xdp_run_prog()
igc_xdp_run_prog() converts customed xdp action to a negative error code
with the sk_buff pointer type which be checked with IS_ERR in
igc_clean_rx_irq(). Remove this error pointer handing instead use plain
int return value to fix this smatch warnings:
drivers/net/ethernet/intel/igc/igc_main.c:2533
igc_xdp_run_prog() warn: passing zero to 'ERR_PTR'
Reviewed-by: Maciej Fijalkowski <[email protected]>
Reviewed-by: Jacob Keller <[email protected]>
Signed-off-by: Yue Haibing <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Tested-by: Avigail Dahan <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/igb/igb_main.c')
0 files changed, 0 insertions, 0 deletions
