Commit ce62093d authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] ppp: try harder to allocate the deflate buffer

We're using a 4-order allocation in there and it can fail.  Change it to just
keep reclaiming memory until something gives.
parent 30575f5d
......@@ -351,7 +351,7 @@ static void *z_decomp_alloc(unsigned char *options, int opt_len)
state->w_size = w_size;
state->strm.next_out = NULL;
state->strm.workspace = kmalloc(zlib_inflate_workspacesize(),
GFP_KERNEL);
GFP_KERNEL|__GFP_REPEAT);
if (state->strm.workspace == NULL)
goto out_free;
......
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