]> git.baikalelectronics.ru Git - kernel.git/commit
bond: check if slave count is 0 in case when deciding to take slave's mac
authorJiri Pirko <jiri@resnulli.us>
Mon, 25 Feb 2013 22:26:15 +0000 (22:26 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Feb 2013 22:30:38 +0000 (17:30 -0500)
commit305d1f412ecf188d3dc2f8c678f95ed76cc6258f
tree7fad067bef292f4227966b484952080e4f26fdf5
parent5d82bca9d925e91fca04b2c866e4311cc67a0a30
bond: check if slave count is 0 in case when deciding to take slave's mac

in bond_enslave(), check slave_cnt before actually using slave address.

introduced by:
commit b5996237f6f (bond: have random dev address by default instead of zeroes)

Reported-by: Greg Rose <gregory.v.rose@intel.com>
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c