Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 208874
b: refs/heads/master
c: f3065f6
h: refs/heads/master
v: v3
  • Loading branch information
Phillip Lougher committed Aug 5, 2010
1 parent 5d86a3f commit f177b7e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 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: 79cb8ced7eef53856b5a877db0544acf52e00c80
refs/heads/master: f3065f60ddfd4b5e34a412851d91d0cf27cdbf7e
8 changes: 5 additions & 3 deletions trunk/fs/squashfs/lzo_wrapper.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,15 @@ struct squashfs_lzo {

static void *lzo_init(struct squashfs_sb_info *msblk)
{
int block_size = max_t(int, msblk->block_size, SQUASHFS_METADATA_SIZE);

struct squashfs_lzo *stream = kzalloc(sizeof(*stream), GFP_KERNEL);
if (stream == NULL)
goto failed;
stream->input = vmalloc(msblk->block_size);
stream->input = vmalloc(block_size);
if (stream->input == NULL)
goto failed;
stream->output = vmalloc(msblk->block_size);
stream->output = vmalloc(block_size);
if (stream->output == NULL)
goto failed2;

Expand Down Expand Up @@ -80,7 +82,7 @@ static int lzo_uncompress(struct squashfs_sb_info *msblk, void **buffer,
struct squashfs_lzo *stream = msblk->stream;
void *buff = stream->input;
int avail, i, bytes = length, res;
size_t out_len = msblk->block_size;
size_t out_len = srclength;

mutex_lock(&msblk->read_data_mutex);

Expand Down

0 comments on commit f177b7e

Please sign in to comment.