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>
This commit is contained in:
committed by
David S. Miller
parent
9e0064a545
commit
95ae6b228f
@@ -362,7 +362,7 @@ static int ieee80211_ifa_changed(struct notifier_block *nb,
|
||||
if (sdata->vif.type != NL80211_IFTYPE_STATION)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
idev = sdata->dev->ip_ptr;
|
||||
idev = __in_dev_get_rtnl(sdata->dev);
|
||||
if (!idev)
|
||||
return NOTIFY_DONE;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user