net/ark: fix leak on thread termination
authorDavid Marchand <david.marchand@redhat.com>
Tue, 11 May 2021 11:33:57 +0000 (13:33 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 11 May 2021 21:40:22 +0000 (23:40 +0200)
commitb8b5dc6b9596a07cbeed03192b41a4befb75acc6
treeee8fe9c872885b039b3204ab4bc747cfbb0ae4ba
parent99fc79b37af5652f30ab3c9725fd6a98494d14dc
net/ark: fix leak on thread termination

A terminated pthread should be joined or detached so that its associated
resources are released.

The "ark-delay-pg" thread is just used to delay some task but it is never
joined by the thread that created it.
The easiest solution is to detach the new thread.

Fixes: 727b3fe292bc ("net/ark: integrate PMD")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Acked-by: Ed Czeck <ed.czeck@atomicrules.com>
drivers/net/ark/ark_pktgen.c