> -----Original Message-----
> From: Yiding Zhou <[email protected]>
> Sent: Wednesday, April 27, 2022 11:25 PM
> To: [email protected]; Wu, Jingjing <[email protected]>; Xing, Beilei
> <[email protected]>
> Cc: Yang, Qiming <[email protected]>; Zhang, Qi Z
> <[email protected]>; [email protected]; Zhou, YidingX
> <[email protected]>
> Subject: [PATCH v2] net/iavf: fix segfaults when calling API after VF reset
> failed
>
> Some pointers will be set to NULL when iavf_dev_reset() failed, for example
> vf-
> >vf_res, vf->vsi_res vf->rss_key and etc.
> APIs access these NULL pointers will trigger segfault.
>
> This patch adds closed flag to indicate that the VF is closed, and rejects
> API calls
> in this state to avoid coredump.
>
> Fixes: e74e1bb6280d ("net/iavf: enable port reset")
> Cc: [email protected]
>
> Signed-off-by: Yiding Zhou <[email protected]>
Tested-by: Peng Huang <[email protected]>