net/softnic: fix unchecked return value
PATCH 1/1 net/softnic: fix unchecked return value
Fix unchecked return value issue reported by Coverity.
Coverity ID 336852
Fixes a958a5c07f4b ("net/softnic: support service cores")
Signed-off-by Jasvinder Singh <[email protected]>
--- drivers/net/softnic/rte_eth_softnic_thread.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
drivers/net/softnic/rte_eth_softnic_thread.c +4 -1
@@ -137,7 +137,10 @@ thread_sc_service_up(struct pmd_internals *softnic, uint32_t thread_id)uint16_t port_id;/* service params */ -rte_eth_dev_get_port_by_name (softnic->params.name, &port_id); + status =rte_eth_dev_get_port_by_name (softnic->params.name, &port_id); +if (status) +return status; + dev = &rte_eth_devices[port_id]; snprintf(service_params.name, sizeof(service_params.name), "%s_%u", softnic->params.name,
Signature · 1 line
2.17.1
Acked-by Rami Rosen <[email protected]>
Quoted 6 lines · Jasvinder Singh
Fix unchecked return value issue reported by Coverity.
Coverity ID 336852
Fixes a958a5c07f4b ("net/softnic: support service cores")Signed-off-by Jasvinder Singh <[email protected]>
Acked-by Rami Rosen <[email protected]>
Applied to dpdk-next-net/master, thanks.