Re: [PATCH v2 net] ice: Fix NULL pointer access, if PF doesn't support SRIOV_LAG
From: Jiri Pirko
Date: Tue Aug 27 2024 - 03:40:37 EST
Tue, Aug 27, 2024 at 09:16:02AM CEST, tbogendoerfer@xxxxxxx wrote:
>For PFs, which don't support SRIOV_LAG, there is no pf->lag struct
>allocated. So before accessing pf->lag a NULL pointer check is needed.
>
>Fixes: 1e0f9881ef79 ("ice: Flesh out implementation of support for SRIOV on bonded interface")
>Signed-off-by: Thomas Bogendoerfer <tbogendoerfer@xxxxxxx>
Reviewed-by: Jiri Pirko <jiri@xxxxxxxxxx>