diff --git a/net/core/sock.c b/net/core/sock.c index d472db4776c3bd72fcf396287ad7edf873affffb..ee6cd2541d35765642bcc10cb72ff52f5f2d97b7 100644 --- a/net/core/sock.c +++ b/net/core/sock.c @@ -1160,7 +1160,7 @@ static struct sk_buff *sock_alloc_send_pskb(struct sock *sk, goto failure; if (atomic_read(&sk->sk_wmem_alloc) < sk->sk_sndbuf) { - skb = alloc_skb(header_len, sk->sk_allocation); + skb = alloc_skb(header_len, gfp_mask); if (skb) { int npages; int i;