> -----Original Message-----
> From: Zhou, YidingX <[email protected]>
> Sent: Thursday, May 12, 2022 6:49 PM
> To: [email protected]; Wu, Jingjing <[email protected]>; Xing, Beilei
> <[email protected]>
> Cc: Zhang, Qi Z <[email protected]>; [email protected]
> Subject: [PATCH v3] 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]>

Acked-by: Qi Zhang <[email protected]>

Applied to dpdk-next-net-intel.

Thanks
Qi

Reply via email to