X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=net%2Fipv4%2Ffib_semantics.c;h=186f20c4a45e06a65cfaee8cbfba41ab00dfbf00;hb=4fd5f8267dd37aaebadfabe71d9c808821eea05a;hp=d41219e8037c7a9f8a9c69dc1bd720f36d357d0b;hpb=66f3767376e2bbffb4c2c78ea171e1fdcb62201b;p=powerpc.git diff --git a/net/ipv4/fib_semantics.c b/net/ipv4/fib_semantics.c index d41219e803..186f20c4a4 100644 --- a/net/ipv4/fib_semantics.c +++ b/net/ipv4/fib_semantics.c @@ -1087,7 +1087,7 @@ fib_convert_rtentry(int cmd, struct nlmsghdr *nl, struct rtmsg *rtm, rta->rta_oif = &dev->ifindex; if (colon) { struct in_ifaddr *ifa; - struct in_device *in_dev = __in_dev_get(dev); + struct in_device *in_dev = __in_dev_get_rtnl(dev); if (!in_dev) return -ENODEV; *colon = ':'; @@ -1268,7 +1268,7 @@ int fib_sync_up(struct net_device *dev) } if (nh->nh_dev == NULL || !(nh->nh_dev->flags&IFF_UP)) continue; - if (nh->nh_dev != dev || __in_dev_get(dev) == NULL) + if (nh->nh_dev != dev || !__in_dev_get_rtnl(dev)) continue; alive++; spin_lock_bh(&fib_multipath_lock);