bonding: fix crash when stopping inactive slave
authorJan Blunck <jblunck@infradead.org>
Wed, 24 Jun 2015 21:01:23 +0000 (14:01 -0700)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Sun, 28 Jun 2015 22:33:50 +0000 (00:33 +0200)
commitaf63759a5356e617cc9823e82d937d8a32deae55
treeb31a64560a691f8d1b30d5c8dcc4ac6d2b70275f
parent414b202343ce8ad02cf90d8a7a3b12eef298c6b1
bonding: fix crash when stopping inactive slave

When stopping the bond device we don't need to try and free up the LACPDU's
from deactivated devices since this is covered by
bond_mode_8023ad_deactivate_slave().

This fixes the following:
[    0.100569] PANIC in bond_ethdev_stop():
[    0.100589] line 1172        assert "port->rx_ring != NULL" failed

Signed-off-by: Jan Blunck <jblunck@infradead.org>
Acked-by: Declan Doherty <declan.doherty@intel.com>
drivers/net/bonding/rte_eth_bond_pmd.c