bus/ifpga: fix null pointer dereference in scan
authorRosen Xu <rosen.xu@intel.com>
Tue, 22 May 2018 10:26:18 +0000 (18:26 +0800)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 22 May 2018 17:16:26 +0000 (19:16 +0200)
commitbb5c82daa7d696dbac85b283a8bc82aa75e8ed96
tree78f9db092075c58373aca20ea5d2f7a79a22ce3f
parent089818197459a899dbddc46c689a6fe53ecd5563
bus/ifpga: fix null pointer dereference in scan

Fix ifpga_scan_one() null pointer dereferences issue.

Coverity issue: 279454
Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library")
Cc: stable@dpdk.org
Signed-off-by: Rosen Xu <rosen.xu@intel.com>
drivers/bus/ifpga/ifpga_bus.c