> -----Original Message-----
> From: Wang, Haiyue <[email protected]>
> Sent: Monday, September 13, 2021 1:47 PM
> To: Yu, DapengX <[email protected]>; Yang, Qiming
> <[email protected]>; Zhang, Qi Z <[email protected]>
> Cc: [email protected]; [email protected]
> Subject: RE: [PATCH v3] net/ice: fix representor port segmentation fault
>
> > -----Original Message-----
> > From: Yu, DapengX <[email protected]>
> > Sent: Tuesday, September 7, 2021 10:01
> > To: Yang, Qiming <[email protected]>; Zhang, Qi Z
> > <[email protected]>
> > Cc: [email protected]; Wang, Haiyue <[email protected]>; Yu, DapengX
> > <[email protected]>; [email protected]
> > Subject: [PATCH v3] net/ice: fix representor port segmentation fault
> >
> > From: Dapeng Yu <[email protected]>
> >
> > If DCF representor port is closed after DCF port is closed, there will
> > be segmentation fault because representor accesses the released
> > resource of DCF port.
> >
> > This patch checks if the resource is present before accessing.
> >
> > Fixes: 5674465a32c8 ("net/ice: add DCF VLAN handling")
> > Cc: [email protected]
> >
> > Signed-off-by: Dapeng Yu <[email protected]>
> > ---
> > V2:
> > * Remove (void) to make code clean.
> > V3:
> > * Only check resource accessibility but not release it.
> > ---
> > drivers/net/ice/ice_dcf_vf_representor.c | 8 ++++++++
> > 1 file changed, 8 insertions(+)
> >
>
> Acked-by: Haiyue Wang <[email protected]>
Applied to dpdk-next-net-intel.
Thanks
Qi
>
> > --
> > 2.27.0
>