net/bonding: fix possible null pointer reference
authorDeclan Doherty <declan.doherty@intel.com>
Tue, 8 Jan 2019 11:17:56 +0000 (11:17 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 14 Jan 2019 16:44:29 +0000 (17:44 +0100)
commite6b8757bb72caa565d24282ad8e405f28e3a34a9
tree1ef5abf158b0daa6a37d86c351811dafcb1c2cef
parent08fd782b8454ab9019290d35f4e5334b4235923e
net/bonding: fix possible null pointer reference

In function check_for_bonded_ethdev the driver name is used without
validating the pointer references in the passed ethdev object.

Fixes: 740feaf349b1 ("ethdev: remove driver name from device private data")
Cc: stable@dpdk.org
Signed-off-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_api.c