summaryrefslogtreecommitdiff
path: root/drivers/bus/ifpga
diff options
context:
space:
mode:
authorRosen Xu <rosen.xu@intel.com>2018-05-22 18:26:16 +0800
committerThomas Monjalon <thomas@monjalon.net>2018-05-22 19:15:58 +0200
commit07b4a8be61e9f0e2af2d15685ddf2f9eb5ba162e (patch)
treefedc3e9891f08bde56e01d0d73fe10e309ad9c38 /drivers/bus/ifpga
parentf14b264f65043ae163285fd9089e9d1822d598b7 (diff)
downloaddpdk-07b4a8be61e9f0e2af2d15685ddf2f9eb5ba162e.zip
dpdk-07b4a8be61e9f0e2af2d15685ddf2f9eb5ba162e.tar.gz
dpdk-07b4a8be61e9f0e2af2d15685ddf2f9eb5ba162e.tar.xz
bus/ifpga: fix error check in unplug
The control variable should be afu_dev not dev. Coverity issue: 279455 Fixes: 05fa3d4a6539 ("bus/ifpga: add Intel FPGA bus library") Cc: stable@dpdk.org Signed-off-by: Rosen Xu <rosen.xu@intel.com>
Diffstat (limited to 'drivers/bus/ifpga')
-rw-r--r--drivers/bus/ifpga/ifpga_bus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bus/ifpga/ifpga_bus.c b/drivers/bus/ifpga/ifpga_bus.c
index 45597a1..675b9a3 100644
--- a/drivers/bus/ifpga/ifpga_bus.c
+++ b/drivers/bus/ifpga/ifpga_bus.c
@@ -367,7 +367,7 @@ ifpga_unplug(struct rte_device *dev)
return -EINVAL;
afu_dev = RTE_DEV_TO_AFU(dev);
- if (!dev)
+ if (!afu_dev)
return -ENOENT;
devargs = dev->devargs;