]> Pileus Git - ~andy/linux/blobdiff - net/ipv6/ip6_input.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/mchehab/linux-edac
[~andy/linux] / net / ipv6 / ip6_input.c
index 47975e363fcdec47ad3c12f5097688e839772167..a52d864d562b4067e8f70db9e0fabbafe76b7fea 100644 (file)
@@ -52,11 +52,9 @@ int ip6_rcv_finish(struct sk_buff *skb)
        if (sysctl_ip_early_demux && !skb_dst(skb)) {
                const struct inet6_protocol *ipprot;
 
-               rcu_read_lock();
                ipprot = rcu_dereference(inet6_protos[ipv6_hdr(skb)->nexthdr]);
                if (ipprot && ipprot->early_demux)
                        ipprot->early_demux(skb);
-               rcu_read_unlock();
        }
        if (!skb_dst(skb))
                ip6_route_input(skb);