Commit cac3aecd authored by David S. Miller's avatar David S. Miller

[NET]: In sock_alloc_send_pskb, add __GFP_REPEAT when __GFP_WAIT.

parent 6f06499b
......@@ -768,9 +768,14 @@ struct sk_buff *sock_alloc_send_pskb(struct sock *sk, unsigned long header_len,
unsigned long data_len, int noblock, int *errcode)
{
struct sk_buff *skb;
unsigned int gfp_mask;
long timeo;
int err;
gfp_mask = sk->allocation;
if (gfp_mask & __GFP_WAIT)
gfp_mask |= __GFP_REPEAT;
timeo = sock_sndtimeo(sk, noblock);
while (1) {
err = sock_error(sk);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment