net: sk_add_backlog() take rmem_alloc into account
[safe/jmp/linux-2.6] / net / ipv4 / udp.c
index fa3d287..63eb56b 100644 (file)
@@ -1372,6 +1372,10 @@ int udp_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
                        goto drop;
        }
 
+
+       if (sk_rcvqueues_full(sk, skb))
+               goto drop;
+
        rc = 0;
 
        bh_lock_sock(sk);