bus/dpaa: check flag in qman multi enqueue
authorNipun Gupta <nipun.gupta@nxp.com>
Tue, 23 Jan 2018 12:27:01 +0000 (17:57 +0530)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 31 Jan 2018 12:44:41 +0000 (13:44 +0100)
commit6613c3743740b278c2ca01032a4862db3b4bafcb
tree1b9a9ba1059a8191395c263593922b3eb8fdaafd
parentdffa1f304939d57431b262ae9fc1f636b346dda0
bus/dpaa: check flag in qman multi enqueue

A caller may/may not pass the flags in qman enqueue multi API.
This patch adds a check on that flag and only accesses it if passed
by the caller.

Fixes: 43797e7b4774 ("bus/dpaa: support event dequeue and consumption")
Cc: stable@dpdk.org
Signed-off-by: Nipun Gupta <nipun.gupta@nxp.com>
Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com>
drivers/bus/dpaa/base/qbman/qman.c