From: John Miller Date: Tue, 16 May 2017 16:14:16 +0000 (-0400) Subject: net/ark: fix return code not checked X-Git-Tag: spdx-start~3164 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=d1434c047949ba52a11d64ca4d8304c9e261dd45;p=dpdk.git 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 --- diff --git a/drivers/net/ark/ark_ethdev.c b/drivers/net/ark/ark_ethdev.c index 5c4503888c..07b7ddc771 100644 --- a/drivers/net/ark/ark_ethdev.c +++ b/drivers/net/ark/ark_ethdev.c @@ -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)