Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 298101
b: refs/heads/master
c: 045ead3
h: refs/heads/master
i:
  298099: 7db19db
v: v3
  • Loading branch information
Joe Perches authored and David Woodhouse committed Mar 26, 2012
1 parent 85525e9 commit 1b7b3b3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2c4ae276b13114a2c7ebac31257db391b4bf2b6f
refs/heads/master: 045ead345b53c6186303f1413f90154f3137f457
1 change: 0 additions & 1 deletion trunk/fs/jffs2/compr_lzo.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ static int __init alloc_workspace(void)
lzo_compress_buf = vmalloc(lzo1x_worst_compress(PAGE_SIZE));

if (!lzo_mem || !lzo_compress_buf) {
printk(KERN_WARNING "Failed to allocate lzo deflate workspace\n");
free_workspace();
return -ENOMEM;
}
Expand Down
6 changes: 2 additions & 4 deletions trunk/fs/jffs2/compr_zlib.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,12 @@ static int __init alloc_workspaces(void)
{
def_strm.workspace = vmalloc(zlib_deflate_workspacesize(MAX_WBITS,
MAX_MEM_LEVEL));
if (!def_strm.workspace) {
printk(KERN_WARNING "Failed to allocate %d bytes for deflate workspace\n", zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL));
if (!def_strm.workspace)
return -ENOMEM;
}

D1(printk(KERN_DEBUG "Allocated %d bytes for deflate workspace\n", zlib_deflate_workspacesize(MAX_WBITS, MAX_MEM_LEVEL)));
inf_strm.workspace = vmalloc(zlib_inflate_workspacesize());
if (!inf_strm.workspace) {
printk(KERN_WARNING "Failed to allocate %d bytes for inflate workspace\n", zlib_inflate_workspacesize());
vfree(def_strm.workspace);
return -ENOMEM;
}
Expand Down

0 comments on commit 1b7b3b3

Please sign in to comment.