]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: 802.3ad - fix agg_device_up
authorJiri Bohac <jbohac@suse.cz>
Tue, 19 Apr 2011 02:09:55 +0000 (02:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 20 Apr 2011 08:44:43 +0000 (01:44 -0700)
commitb38cafeea471dba824036cc37e434e77dad376d8
tree76199ce83fd1ef26f1438302fb2f4898f537531d
parent9bbd66f1c7dac8f2c898b312f4e9dcbc77c86955
bonding: 802.3ad - fix agg_device_up

The slave member of struct aggregator does not necessarily point
to a slave which is part of the aggregator. It points to the
slave structure containing the aggregator structure, while
completely different slaves (or no slaves at all) may be part of
the aggregator.

The agg_device_up() function wrongly uses agg->slave to find the state
of the aggregator.  Use agg->lag_ports->slave instead. The bug has
been introduced by commit 0b8470e8f89c2777a37c330150a42e64c2f1ceb7
("bonding: fix link down handling in 802.3ad mode").

Signed-off-by: Jiri Bohac <jbohac@suse.cz>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c