aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/unix/af_unix.c')
-rw-r--r--net/unix/af_unix.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 99dc760cdd95..fee9e3397cd1 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -1479,7 +1479,8 @@ static int unix_dgram_sendmsg(struct kiocb *kiocb, struct socket *sock,
1479 MAX_SKB_FRAGS * PAGE_SIZE); 1479 MAX_SKB_FRAGS * PAGE_SIZE);
1480 1480
1481 skb = sock_alloc_send_pskb(sk, len - data_len, data_len, 1481 skb = sock_alloc_send_pskb(sk, len - data_len, data_len,
1482 msg->msg_flags & MSG_DONTWAIT, &err); 1482 msg->msg_flags & MSG_DONTWAIT, &err,
1483 PAGE_ALLOC_COSTLY_ORDER);
1483 if (skb == NULL) 1484 if (skb == NULL)
1484 goto out; 1485 goto out;
1485 1486
@@ -1651,7 +1652,8 @@ static int unix_stream_sendmsg(struct kiocb *kiocb, struct socket *sock,
1651 data_len = max_t(int, 0, size - SKB_MAX_HEAD(0)); 1652 data_len = max_t(int, 0, size - SKB_MAX_HEAD(0));
1652 1653
1653 skb = sock_alloc_send_pskb(sk, size - data_len, data_len, 1654 skb = sock_alloc_send_pskb(sk, size - data_len, data_len,
1654 msg->msg_flags & MSG_DONTWAIT, &err); 1655 msg->msg_flags & MSG_DONTWAIT, &err,
1656 get_order(UNIX_SKB_FRAGS_SZ));
1655 if (!skb) 1657 if (!skb)
1656 goto out_err; 1658 goto out_err;
1657 1659