event/dpaa: fix portal allocation
authorNipun Gupta <nipun.gupta@nxp.com>
Mon, 5 Feb 2018 05:21:57 +0000 (10:51 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 5 Feb 2018 23:43:32 +0000 (00:43 +0100)
commit5b8526445d53aa172abf77076ffc952a5c6d2d17
treeaf2eac7de98d115cfb4ea7d40f887dbb29e2d941
parent49f6d9651086ed73929770afa3012c15a2f7420a
event/dpaa: fix portal allocation

Checking if portal has been allocated is now required at the
caller of rte_dpaa_portal_init() API. This patch adds check
in the dpaa eventdev driver.

Fixes: 5d944582d028 ("bus/dpaa: check portal presence in the caller function")

Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/event/dpaa/dpaa_eventdev.c