From: Sunil Kumar Kori Date: Mon, 9 Apr 2018 10:22:45 +0000 (+0530) Subject: bus/dpaa: fix unchecked return value X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=23386f2ece4b6d3a15b3940088edecbfc877917d;p=dpdk.git bus/dpaa: fix unchecked return value Coverity issue: 268323 Fixes: 5d944582d028 ("bus/dpaa: check portal presence in the caller function") Cc: stable@dpdk.org Signed-off-by: Sunil Kumar Kori Acked-by: Hemant Agrawal --- diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 3535da5f7c..ffc90a7025 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -308,9 +308,15 @@ rte_dpaa_portal_fq_init(void *arg, struct qman_fq *fq) /* Affine above created portal with channel*/ u32 sdqcr; struct qman_portal *qp; + int ret; - if (unlikely(!RTE_PER_LCORE(dpaa_io))) - rte_dpaa_portal_init(arg); + if (unlikely(!RTE_PER_LCORE(dpaa_io))) { + ret = rte_dpaa_portal_init(arg); + if (ret < 0) { + DPAA_BUS_LOG(ERR, "portal initialization failure"); + return ret; + } + } /* Initialise qman specific portals */ qp = fsl_qman_portal_create();