diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2010-09-15 00:04:31 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-09-16 01:06:05 -0400 |
commit | 95ae6b228f814fc0528d0506ee9f18ac333d6851 (patch) | |
tree | d5287f3dee478e1bd5fa79e63192447c5bc91e92 /net/mac80211/main.c | |
parent | 9e0064a5456fd75fd7c70f6f3692c7f732f91a65 (diff) |
ipv4: ip_ptr cleanups
dev->ip_ptr is protected by rtnl and rcu.
Yet some places dont use appropriate primitives and/or locking rules.
Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/mac80211/main.c')
-rw-r--r-- | net/mac80211/main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/mac80211/main.c b/net/mac80211/main.c index 4935b843bcca..b8cf2821f00d 100644 --- a/net/mac80211/main.c +++ b/net/mac80211/main.c | |||
@@ -362,7 +362,7 @@ static int ieee80211_ifa_changed(struct notifier_block *nb, | |||
362 | if (sdata->vif.type != NL80211_IFTYPE_STATION) | 362 | if (sdata->vif.type != NL80211_IFTYPE_STATION) |
363 | return NOTIFY_DONE; | 363 | return NOTIFY_DONE; |
364 | 364 | ||
365 | idev = sdata->dev->ip_ptr; | 365 | idev = __in_dev_get_rtnl(sdata->dev); |
366 | if (!idev) | 366 | if (!idev) |
367 | return NOTIFY_DONE; | 367 | return NOTIFY_DONE; |
368 | 368 | ||