event/dpaa2: fix dereference before null check
authorYunjian Wang <wangyunjian@huawei.com>
Wed, 26 Aug 2020 13:07:40 +0000 (21:07 +0800)
committerJerin Jacob <jerinj@marvell.com>
Thu, 15 Oct 2020 19:32:14 +0000 (21:32 +0200)
commitdb5e0e7aea5e256c43489a3b272a4318b6ddca9f
treece2b47704ac21c91a0b938f595dd2cbae86456da
parent227f283599ebdd53b984161343df40b906a6bc57
event/dpaa2: fix dereference before null check

Coverity flags that 'portal' variable is used before
it's checked for NULL. This patch fixes this issue.

Coverity issue: 323516
Fixes: 4ab57b042e7c ("event/dpaa2: affine portal at runtime during I/O")
Cc: stable@dpdk.org
Signed-off-by: Yunjian Wang <wangyunjian@huawei.com>
Acked-by: Nipun Gupta <nipun.gupta@nxp.com>
drivers/event/dpaa2/dpaa2_eventdev.c