> -----Original Message-----
> From: Intel-wired-lan <[email protected]> On Behalf Of
> Dave Ertman
> Sent: Thursday, May 22, 2025 10:47 PM
> To: [email protected]
> Subject: [Intel-wired-lan] [PATCH iwl-net v2] 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]>
> ---
>  drivers/net/ethernet/intel/ice/ice_lag.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
Tested-by: Sujai Buvaneswaran <[email protected]>

Reply via email to