]> git.baikalelectronics.ru Git - kernel.git/commit
switchdev: assert rtnl mutex when going over lower netdevs
authorJiri Pirko <jiri@mellanox.com>
Wed, 14 Oct 2015 17:40:55 +0000 (19:40 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Oct 2015 13:09:53 +0000 (06:09 -0700)
commit69c523480a1f63d4a888874cc13b48eb586fb808
tree7d6671c6e2f27c0b04ce775d913f09384b89e07f
parente3805843997cfaac62032706cbe620ffecd9a48e
switchdev: assert rtnl mutex when going over lower netdevs

netdev_for_each_lower_dev has to be called with rtnl mutex held. So
better enforce it in switchdev functions.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/switchdev/switchdev.c