aboutsummaryrefslogtreecommitdiffstats
path: root/net/ipv4/udp.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r--net/ipv4/udp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c
index 9f525a2a68df..2162fc6ce1c1 100644
--- a/net/ipv4/udp.c
+++ b/net/ipv4/udp.c
@@ -1522,7 +1522,7 @@ int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
1522 1522
1523 /* if we're overly short, let UDP handle it */ 1523 /* if we're overly short, let UDP handle it */
1524 encap_rcv = ACCESS_ONCE(up->encap_rcv); 1524 encap_rcv = ACCESS_ONCE(up->encap_rcv);
1525 if (skb->len > sizeof(struct udphdr) && encap_rcv != NULL) { 1525 if (skb->len > sizeof(struct udphdr) && encap_rcv) {
1526 int ret; 1526 int ret;
1527 1527
1528 /* Verify checksum before giving to encap */ 1528 /* Verify checksum before giving to encap */
@@ -1802,7 +1802,7 @@ int __udp4_lib_rcv(struct sk_buff *skb, struct udp_table *udptable,
1802 saddr, daddr, udptable, proto); 1802 saddr, daddr, udptable, proto);
1803 1803
1804 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable); 1804 sk = __udp4_lib_lookup_skb(skb, uh->source, uh->dest, udptable);
1805 if (sk != NULL) { 1805 if (sk) {
1806 int ret; 1806 int ret;
1807 1807
1808 if (inet_get_convert_csum(sk) && uh->check && !IS_UDPLITE(sk)) 1808 if (inet_get_convert_csum(sk) && uh->check && !IS_UDPLITE(sk))