bonding: bond_slave_info_query() fix
authorEric Dumazet <dada1@cosmosbay.com>
Thu, 23 Apr 2009 03:39:04 +0000 (03:39 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 May 2009 22:18:19 +0000 (15:18 -0700)
commit689c96cca7ec3d2ba7fba00481810f99f1803c63
tree0aede65eabbcbcb8bb0eaebca225a56772e5a8eb
parent00b64f2aa5e8741b49e48ebad1116cc78dbbf0fd
bonding: bond_slave_info_query() fix

bond_slave_info_query() should keep a read lock while accessing slave info,
or risk accessing stale data and corruption.

Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c