[dpdk-dev] [PATCH] net/kni: fix crash caused by double stop
Ferruh Yigit
ferruh.yigit at intel.com
Tue Nov 26 15:46:55 CET 2019
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 <ferruh.yigit at intel.com>
Applied to dpdk-next-net/master, thanks.
(Applied quickly to make the fix for rc4)
More information about the dev
mailing list