]> Pileus Git - ~andy/linux/blobdiff - drivers/net/ppp_deflate.c
Revert "usb: usb_storage: do not align length of request for CBW to maxp size"
[~andy/linux] / drivers / net / ppp_deflate.c
index 43583309a65db6ec7053c182b479cb4e13c4471d..31e9407a07394e6bdeaf976afe59b012160e2c9b 100644 (file)
@@ -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;