aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/ice/ice_debugfs.c
diff options
context:
space:
mode:
authorDave Ertman <[email protected]>2025-05-22 17:16:57 +0000
committerTony Nguyen <[email protected]>2025-07-15 20:01:15 +0000
commit3ce58b01ada408b372f15b7c992ed0519840e3cf (patch)
treeb2118687d242038fc22ee2f0ea918822c631eed5 /drivers/net/ethernet/intel/ice/ice_debugfs.c
parentethernet: intel: fix building with large NR_CPUS (diff)
downloadkernel-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