net/ark: fix return code not checked

Coverity issue: 144514
Fixes: 727b3fe292bc ("net/ark: integrate PMD")
Cc: stable@dpdk.org

Signed-off-by: John Miller <john.miller@atomicrules.com>
This commit is contained in:
John Miller 2017-05-16 12:14:16 -04:00 committed by Ferruh Yigit
parent 79a158130f
commit d1434c0479

View File

@ -588,7 +588,11 @@ eth_ark_dev_start(struct rte_eth_dev *dev)
/* Delay packet generatpr start allow the hardware to be ready
* This is only used for sanity checking with internal generator
*/
pthread_create(&thread, NULL, delay_pg_start, ark);
if (pthread_create(&thread, NULL, delay_pg_start, ark)) {
PMD_DRV_LOG(ERR, "Could not create pktgen "
"starter thread\n");
return -1;
}
}
if (ark->user_ext.dev_start)