diff options
Diffstat (limited to 'net/ipv6/udp.c')
-rw-r--r-- | net/ipv6/udp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv6/udp.c b/net/ipv6/udp.c index 58efd2c5c127..120aff9aa010 100644 --- a/net/ipv6/udp.c +++ b/net/ipv6/udp.c | |||
@@ -648,7 +648,7 @@ int udpv6_queue_rcv_skb(struct sock *sk, struct sk_buff *skb) | |||
648 | 648 | ||
649 | /* if we're overly short, let UDP handle it */ | 649 | /* if we're overly short, let UDP handle it */ |
650 | encap_rcv = ACCESS_ONCE(up->encap_rcv); | 650 | encap_rcv = ACCESS_ONCE(up->encap_rcv); |
651 | if (skb->len > sizeof(struct udphdr) && encap_rcv != NULL) { | 651 | if (skb->len > sizeof(struct udphdr) && encap_rcv) { |
652 | int ret; | 652 | int ret; |
653 | 653 | ||
654 | /* Verify checksum before giving to encap */ | 654 | /* Verify checksum before giving to encap */ |
@@ -899,7 +899,7 @@ int __udp6_lib_rcv(struct sk_buff *skb, struct udp_table *udptable, | |||
899 | * for sock caches... i'll skip this for now. | 899 | * for sock caches... i'll skip this for now. |
900 | */ | 900 | */ |
901 | sk = __udp6_lib_lookup_skb(skb, uh->source, uh->dest, udptable); | 901 | sk = __udp6_lib_lookup_skb(skb, uh->source, uh->dest, udptable); |
902 | if (sk != NULL) { | 902 | if (sk) { |
903 | int ret; | 903 | int ret; |
904 | 904 | ||
905 | if (!uh->check && !udp_sk(sk)->no_check6_rx) { | 905 | if (!uh->check && !udp_sk(sk)->no_check6_rx) { |