Test-by :Wang, Yinan <[email protected]>
> -----Original Message-----
> From: dev <[email protected]> On Behalf Of Ferruh Yigit
> Sent: 2019年11月26日 22:47
> To: Yigit, Ferruh <[email protected]>
> Cc: [email protected]
> Subject: Re: [dpdk-dev] [PATCH] net/kni: fix crash caused by double stop
>
> On 11/26/2019 10:50 AM, Ferruh Yigit wrote:
> > 'close()' calls 'stop()' and 'stop()' cancels pthread without any check.
> > Calling 'stop()' & 'close()' sequentially tries to cancel pthread
> > twice which will cause a crash.
> >
> > Adding a state check in 'stop()' before canceling the pthread to
> > prevent multiple stop.
> >
> > Fixes: 696fbc7bb4fc ("net/kni: remove resources when port is closed")
> >
> > Signed-off-by: Ferruh Yigit <[email protected]>
>
> Applied to dpdk-next-net/master, thanks.
>
> (Applied quickly to make the fix for rc4)