aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv6
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv6')
-rw-r--r--net/ipv6/udp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c
index 20039c8501eb..8cd9b628cdc7 100644
--- a/net/ipv6/udp.c
+++ b/net/ipv6/udp.c
@@ -575,8 +575,7 @@ static __inline__ void udpv6_err(struct sk_buff *skb,
575static struct static_key udpv6_encap_needed __read_mostly; 575static struct static_key udpv6_encap_needed __read_mostly;
576void udpv6_encap_enable(void) 576void udpv6_encap_enable(void)
577{ 577{
578 if (!static_key_enabled(&udpv6_encap_needed)) 578 static_key_enable(&udpv6_encap_needed);
579 static_key_slow_inc(&udpv6_encap_needed);
580} 579}
581EXPORT_SYMBOL(udpv6_encap_enable); 580EXPORT_SYMBOL(udpv6_encap_enable);
582 581