diff options
author | Wolfram Sang <wsa@the-dreams.de> | 2020-01-15 18:31:37 +0100 |
---|---|---|
committer | Wolfram Sang <wsa@the-dreams.de> | 2020-01-15 18:31:37 +0100 |
commit | d02e5ee09bd98b8cec9c2e26b486ed4d6d1b7e2a (patch) | |
tree | 7cb6fa45fd1cb4bdad89c7b7832a72df893c838c /net/ipv4/udp.c | |
parent | i2c: parport: move include file into main source (diff) | |
parent | i2c: tegra: Properly disable runtime PM on driver's probe error (diff) | |
download | linux-d02e5ee09bd98b8cec9c2e26b486ed4d6d1b7e2a.tar.xz linux-d02e5ee09bd98b8cec9c2e26b486ed4d6d1b7e2a.zip |
Merge branch 'i2c/for-current' into i2c/for-5.6
Diffstat (limited to 'net/ipv4/udp.c')
-rw-r--r-- | net/ipv4/udp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv4/udp.c b/net/ipv4/udp.c index 4da5758cc718..93a355b6b092 100644 --- a/net/ipv4/udp.c +++ b/net/ipv4/udp.c @@ -1475,7 +1475,7 @@ int __udp_enqueue_schedule_skb(struct sock *sk, struct sk_buff *skb) * queue contains some other skb */ rmem = atomic_add_return(size, &sk->sk_rmem_alloc); - if (rmem > (size + sk->sk_rcvbuf)) + if (rmem > (size + (unsigned int)sk->sk_rcvbuf)) goto uncharge_drop; spin_lock(&list->lock); |