Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 190312
b: refs/heads/master
c: e0d1f70
h: refs/heads/master
v: v3
  • Loading branch information
Phillip Lougher committed Apr 25, 2010
1 parent c453f2a commit a4d941f
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 370ec3d1ed9d76ba992e5b9b7d7d10700014d436
refs/heads/master: e0d1f70010dce062ccce1bbd940a661e60b82631
5 changes: 2 additions & 3 deletions trunk/fs/squashfs/block.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,8 @@ int squashfs_read_data(struct super_block *sb, void **buffer, u64 index,
u64 cur_index = index >> msblk->devblksize_log2;
int bytes, compressed, b = 0, k = 0, page = 0, avail;


bh = kcalloc((msblk->block_size >> msblk->devblksize_log2) + 1,
sizeof(*bh), GFP_KERNEL);
bh = kcalloc(((srclength + msblk->devblksize - 1)
>> msblk->devblksize_log2) + 1, sizeof(*bh), GFP_KERNEL);
if (bh == NULL)
return -ENOMEM;

Expand Down

0 comments on commit a4d941f

Please sign in to comment.