rtnetlink: prepare nla_put_iflink() to run under RCU
[linux-2.6-microblaze.git] / net / ieee802154 / 6lowpan / core.c
index e643f52..77b4e92 100644 (file)
@@ -93,7 +93,7 @@ static int lowpan_neigh_construct(struct net_device *dev, struct neighbour *n)
 
 static int lowpan_get_iflink(const struct net_device *dev)
 {
-       return lowpan_802154_dev(dev)->wdev->ifindex;
+       return READ_ONCE(lowpan_802154_dev(dev)->wdev->ifindex);
 }
 
 static const struct net_device_ops lowpan_netdev_ops = {