diff options
-rw-r--r-- | net/core/datagram.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/core/datagram.c b/net/core/datagram.c index ee631843c2f5..5e2ac0c4b07c 100644 --- a/net/core/datagram.c +++ b/net/core/datagram.c | |||
@@ -209,7 +209,7 @@ struct sk_buff *skb_recv_datagram(struct sock *sk, unsigned flags, | |||
209 | void skb_free_datagram(struct sock *sk, struct sk_buff *skb) | 209 | void skb_free_datagram(struct sock *sk, struct sk_buff *skb) |
210 | { | 210 | { |
211 | kfree_skb(skb); | 211 | kfree_skb(skb); |
212 | sk_mem_reclaim(sk); | 212 | sk_mem_reclaim_partial(sk); |
213 | } | 213 | } |
214 | 214 | ||
215 | /** | 215 | /** |
@@ -248,8 +248,7 @@ int skb_kill_datagram(struct sock *sk, struct sk_buff *skb, unsigned int flags) | |||
248 | spin_unlock_bh(&sk->sk_receive_queue.lock); | 248 | spin_unlock_bh(&sk->sk_receive_queue.lock); |
249 | } | 249 | } |
250 | 250 | ||
251 | kfree_skb(skb); | 251 | skb_free_datagram(sk, skb); |
252 | sk_mem_reclaim(sk); | ||
253 | return err; | 252 | return err; |
254 | } | 253 | } |
255 | 254 | ||