kni: fix crash when removing interface
authorFerruh Yigit <ferruh.yigit@intel.com>
Wed, 31 Aug 2016 13:06:26 +0000 (14:06 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 9 Sep 2016 13:47:48 +0000 (15:47 +0200)
commit5544a453b4ac2e3eded876d01423e7bb0739284c
tree73a82d7509dd7faa692cbebb8e2431ec1e55538c
parente22856313fff2db12d8e132dad446bbf74cf29a5
kni: fix crash when removing interface

Removing KNI interface that has no PCI driver for ethtool support cause
kernel crash.

Fixes: 109febfe58f9 ("net/igb: move PCI device IDs from EAL")
Fixes: 221fba3b987c ("net/ixgbe: move PCI device IDs from EAL")

Signed-off-by: Ferruh Yigit <ferruh.yigit@intel.com>
lib/librte_eal/linuxapp/kni/kni_misc.c