diff options
| author | Dave Ertman <[email protected]> | 2025-05-22 17:16:57 +0000 |
|---|---|---|
| committer | Tony Nguyen <[email protected]> | 2025-07-15 20:01:15 +0000 |
| commit | 3ce58b01ada408b372f15b7c992ed0519840e3cf (patch) | |
| tree | b2118687d242038fc22ee2f0ea918822c631eed5 /drivers/net/ethernet/intel/ice/ice_debugfs.c | |
| parent | ethernet: intel: fix building with large NR_CPUS (diff) | |
| download | kernel-3ce58b01ada408b372f15b7c992ed0519840e3cf.tar.gz kernel-3ce58b01ada408b372f15b7c992ed0519840e3cf.zip | |
ice: add NULL check in eswitch lag check
The function ice_lag_is_switchdev_running() is being called from outside of
the LAG event handler code. This results in the lag->upper_netdev being
NULL sometimes. To avoid a NULL-pointer dereference, there needs to be a
check before it is dereferenced.
Fixes: 776fe19953b0 ("ice: block default rule setting on LAG interface")
Signed-off-by: Dave Ertman <[email protected]>
Reviewed-by: Aleksandr Loktionov <[email protected]>
Tested-by: Sujai Buvaneswaran <[email protected]>
Signed-off-by: Tony Nguyen <[email protected]>
Diffstat (limited to 'drivers/net/ethernet/intel/ice/ice_debugfs.c')
0 files changed, 0 insertions, 0 deletions
