On 6/20/22 15:10, David Marchand wrote:
As stated in the manual, pthread_attr_init return value should be
checked.
Besides, a pthread_attr_t should be destroyed once unused.
In practice, we may have no leak (from what I read in glibc current code),
but this may change in the future.
Stick to a correct use of the API.
Fixes: 5cf3fd3af4df ("vdpa/mlx5: add CPU core parameter to bind polling thread")
Cc: [email protected]
Signed-off-by: David Marchand <[email protected]>
---
Note: this is only compile tested.
---
drivers/vdpa/mlx5/mlx5_vdpa_event.c | 30 +++++++++++++++++++----------
1 file changed, 20 insertions(+), 10 deletions(-)
Applied to dpdk-next-virtio/main.
Thanks,
Maxime