]> git.droids-corp.org - dpdk.git/commit
net/ipn3ke: fix accessing variable before null check
authorAndy Pei <andy.pei@intel.com>
Thu, 23 May 2019 02:53:03 +0000 (10:53 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 20 Jun 2019 21:42:04 +0000 (23:42 +0200)
commit320eecbc7f3d7fce7533482418d37803754bf533
tree9d53ab2803a9df8e2511399f89f1b21a7f09bc65
parent50ade1a71439a0c30df635c5e2f43e1c2d460ada
net/ipn3ke: fix accessing variable before null check

Check input argument "rte_eth_dev *ethdev", to be sure variable is not
NULL before operating on it.

Coverity issue: 337922
Fixes: 70d6b7f550f4 ("net/ipn3ke: add representor")
Cc: stable@dpdk.org
Signed-off-by: Andy Pei <andy.pei@intel.com>
Acked-by: Rosen Xu <rosen.xu@intel.com>
drivers/net/ipn3ke/ipn3ke_representor.c