net/ice: fix possible null pointer dereference
authorWenzhuo Lu <wenzhuo.lu@intel.com>
Wed, 24 Apr 2019 02:43:42 +0000 (10:43 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:23 +0000 (18:45 +0200)
commit3be9c6db296825021bc4e85c6f0bde7df5543cc8
treef8417ab06789c481279477e9e3441a2599bdcb07
parent920fa9a2a1c965347bbb454ef92fb870dd25a4f7
net/ice: fix possible null pointer dereference

Fix the issues reported by Coverity check, "Null-checking
vsi suggests that it may be null, but it has already been
dereferenced on all paths leading to the check."

Coverity issue: 328509, 328519, 328523
Fixes: e0dcf94a0d7f ("net/ice: support VLAN ops")
Fixes: ff963bfa7cb1 ("net/ice: support RSS")
Cc: stable@dpdk.org
Signed-off-by: Wenzhuo Lu <wenzhuo.lu@intel.com>
Acked-by: Qiming Yang <qiming.yang@intel.com>
Reviewed-by: Rami Rosen <ramirose@gmail.com>
drivers/net/ice/ice_ethdev.c