]> git.baikalelectronics.ru Git - kernel.git/commit
team: fix checks in team_get_first_port_txable_rcu()
authorJiri Pirko <jiri@resnulli.us>
Sat, 8 Jun 2013 13:00:55 +0000 (15:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 12 Jun 2013 07:56:27 +0000 (00:56 -0700)
commit2e27ebaaf376f1ef5b65ce01613c84aa68189f75
tree1fee0cd72cc92c6d0b3892c9b99af7a8e4382405
parent7f6660d819fdd2b47f59af26ac19d3ebcb0cdb76
team: fix checks in team_get_first_port_txable_rcu()

should be checked if "cur" is txable, not "port".

Introduced by commit fa74e59680 "team: use function team_port_txable()
for determing enabled and up port"

Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/if_team.h