raw/ifpga/base: fix dereference before null check
authorTianfei Zhang <tianfei.zhang@intel.com>
Tue, 17 Sep 2019 22:24:59 +0000 (06:24 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 25 Oct 2019 17:23:22 +0000 (19:23 +0200)
commit79e9ae58bf6f8dd41ceebb43947f675ef97df521
tree61d767be132208b699554a79f0c3127e8cb5efae
parent739e045bf2567142cb398888437e459db45fc7b4
raw/ifpga/base: fix dereference before null check

Add pointer null check before dereference.

Coverity issue: 344976
Fixes: 12f92a513a13 ("raw/ifpga/base: fix retimer link status")
Cc: stable@dpdk.org
Signed-off-by: Tianfei Zhang <tianfei.zhang@intel.com>
Reviewed-by: Xiaolong Ye <xiaolong.ye@intel.com>
drivers/raw/ifpga/base/opae_eth_group.c