net/ixgbe: fix missing null check on detach
authorQi Zhang <qi.z.zhang@intel.com>
Mon, 16 Jul 2018 12:47:04 +0000 (20:47 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 23 Jul 2018 21:55:26 +0000 (23:55 +0200)
commit1ec01cd0962abd1fe2f32322ff135ac708cb3b8d
tree5abb9b7d6162e856081a4cc7934e1aafe48918b5
parenta8cdaf0964f76c9a2b56f0387b3a3eb1493edc3d
net/ixgbe: fix missing null check on detach

Add missing NULL point check inside ixgbe_pf_host_uninit, or it may cause
segment fault when detaching a device.

Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports")
Cc: stable@dpdk.org
Signed-off-by: Qi Zhang <qi.z.zhang@intel.com>
Acked-by: Remy Horton <remy.horton@intel.com>
drivers/net/ixgbe/ixgbe_pf.c