]> git.baikalelectronics.ru Git - kernel.git/commit
team: fix team_adjust_ops with regard to enabled ports
authorJiri Pirko <jpirko@redhat.com>
Tue, 26 Jun 2012 06:52:45 +0000 (06:52 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 Jun 2012 04:09:39 +0000 (21:09 -0700)
commit169e973bff452019d9f32c3b5ab04a9bb1bb9d52
tree2a01688c91a1040edd2f939078da7fe4c4eb58da
parentb5c6af3d5c0f93639632232d8183e1b842b27025
team: fix team_adjust_ops with regard to enabled ports

team_adjust_ops should check for enabled ports, not all ports.
This may lead to division by zero. This patch fixes this.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c