projects
/
deliverable
/
linux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
zlib: slim down zlib_deflate() workspace when possible
[deliverable/linux.git]
/
drivers
/
net
/
ppp_deflate.c
diff --git
a/drivers/net/ppp_deflate.c
b/drivers/net/ppp_deflate.c
index 43583309a65db6ec7053c182b479cb4e13c4471d..31e9407a07394e6bdeaf976afe59b012160e2c9b 100644
(file)
--- a/
drivers/net/ppp_deflate.c
+++ b/
drivers/net/ppp_deflate.c
@@
-129,7
+129,7
@@
static void *z_comp_alloc(unsigned char *options, int opt_len)
state->strm.next_in = NULL;
state->w_size = w_size;
- state->strm.workspace = vmalloc(zlib_deflate_workspacesize());
+ state->strm.workspace = vmalloc(zlib_deflate_workspacesize(
-w_size, 8
));
if (state->strm.workspace == NULL)
goto out_free;
This page took
0.036708 seconds
and
5
git commands to generate.