net/ixgbe: check probing error
authorDeclan Doherty <declan.doherty@intel.com>
Wed, 2 May 2018 15:59:41 +0000 (16:59 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Wed, 2 May 2018 17:28:48 +0000 (19:28 +0200)
commita34506b3a556c541350c3baf620ca64d50485865
tree84a5416263131fe179c277a4749921b13e1c6a92
parent07d27b971bf369e2748efe0bbf34b7b20d932a21
net/ixgbe: check probing error

Add NULL parameter check for rte_eth_dev_allocated() API call to
eth_ixgbe_pci_probe().

Coverity Issue: 277216
Fixes: cf80ba6e2038 ("net/ixgbe: add support for representor ports")

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/ixgbe/ixgbe_ethdev.c