bonding: fix freeing with no queue
authorRaslsn Darawsheh <rdarawsheh@asaltech.com>
Mon, 26 Oct 2015 07:07:57 +0000 (09:07 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 4 Nov 2015 22:44:58 +0000 (23:44 +0100)
commit32b12e75679230b1104b9e6547a1ff3c4a360e05
tree70931f57c50b21c70553b3881045ad3b181f046f
parent13634d32eab89a91aacfb459c4df66e8ef85f80a
bonding: fix freeing with no queue

In case of creating bond device without add any slaves and
quit from testpmd, application crashed since rx/tx queues
are NULL.

Add checking of this parameters before trying to free.

Signed-off-by: Raslsn Darawsheh <rdarawsheh@asaltech.com>
Signed-off-by: Yaacov Hazan <yaacovh@mellanox.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c