pdump: fix error code check when creating/canceling pthread
authorOlivier Matz <olivier.matz@6wind.com>
Wed, 29 Nov 2017 09:55:00 +0000 (10:55 +0100)
committerOlivier Matz <olivier.matz@6wind.com>
Fri, 8 Dec 2017 09:50:43 +0000 (10:50 +0100)
commit8eff9b86aa1b73d0c2b225cb670bf033f32fbb43
tree547941592988943e6c35d2d1013778f39f6ff814
parent9ccf7e832c2a1f5a7140dc268e0c74de6e75869d
pdump: fix error code check when creating/canceling pthread

On error, pthread_create() returns a positive number (an errno)
but does not set the errno variable.

Fixes: 278f945402c5 ("pdump: add new library for packet capture")
Cc: stable@dpdk.org
Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_pdump/rte_pdump.c