aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--net/ipv4/icmp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/ipv4/icmp.c b/net/ipv4/icmp.c
index 092400ef88d0..ea7d4afe8205 100644
--- a/net/ipv4/icmp.c
+++ b/net/ipv4/icmp.c
@@ -670,11 +670,9 @@ static void icmp_socket_deliver(struct sk_buff *skb, u32 info)
670 670
671 raw_icmp_error(skb, protocol, info); 671 raw_icmp_error(skb, protocol, info);
672 672
673 rcu_read_lock();
674 ipprot = rcu_dereference(inet_protos[protocol]); 673 ipprot = rcu_dereference(inet_protos[protocol]);
675 if (ipprot && ipprot->err_handler) 674 if (ipprot && ipprot->err_handler)
676 ipprot->err_handler(skb, info); 675 ipprot->err_handler(skb, info);
677 rcu_read_unlock();
678} 676}
679 677
680static bool icmp_tag_validation(int proto) 678static bool icmp_tag_validation(int proto)