]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/route.c
ipv4: Remove leftover rcu_read_unlock calls from __mkroute_output()
[net-next-2.6.git] / net / ipv4 / route.c
index 7864d0c489683e985a1a900b66ad1635557dfbbe..3888f6ba0a5c559a9ce6437a059c91831f08ba2b 100644 (file)
@@ -2396,12 +2396,10 @@ static int __mkroute_output(struct rtable **result,
 
 
        rth = dst_alloc(&ipv4_dst_ops);
-       if (!rth) {
-               rcu_read_unlock();
+       if (!rth)
                return -ENOBUFS;
-       }
+
        in_dev_hold(in_dev);
-       rcu_read_unlock();
        rth->idev = in_dev;
 
        atomic_set(&rth->dst.__refcnt, 1);