]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - net/core/sock.c
[PATCH] NET: __alloc_pages() failures reported due to fragmentation
[karo-tx-linux.git] / net / core / sock.c
index 51fcfbc041a73d38f0172a77c1e5e48b1224f0b7..e7ecdf22f130bc45746b345fdd52d87d7d4ccc07 100644 (file)
@@ -1164,7 +1164,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;