diff options
Diffstat (limited to 'net/ipv6')
| -rw-r--r-- | net/ipv6/udp.c | 3 |
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, | |||
| 575 | static struct static_key udpv6_encap_needed __read_mostly; | 575 | static struct static_key udpv6_encap_needed __read_mostly; |
| 576 | void udpv6_encap_enable(void) | 576 | void 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 | } |
| 581 | EXPORT_SYMBOL(udpv6_encap_enable); | 580 | EXPORT_SYMBOL(udpv6_encap_enable); |
| 582 | 581 | ||
