team: don't traverse port list using rcu in team_set_mac_address
authorJiri Pirko <jiri@resnulli.us>
Wed, 4 Mar 2015 07:36:31 +0000 (08:36 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 4 Mar 2015 21:01:16 +0000 (16:01 -0500)
commit9215f437b85da339a7dfe3db6e288637406f88b2
tree52fe871b97f881013ce35c5c420a3a6033b82c7f
parent61615cd27e2fdcf698261ba77c7d93f7a7739c65
team: don't traverse port list using rcu in team_set_mac_address

Currently the list is traversed using rcu variant. That is not correct
since dev_set_mac_address can be called which eventually calls
rtmsg_ifinfo_build_skb and there, skb allocation can sleep. So fix this
by remove the rcu usage here.

Fixes: 3d249d4ca7 "net: introduce ethernet teaming device"
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/team/team.c