Commit 8bcb2839 authored by Dave Kleikamp's avatar Dave Kleikamp

JFS: Fix bug in quota code. tmp_bh.b_size must be initialized

Signed-off-by: default avatarDave Kleikamp <shaggy@austin.ibm.com>
parent 115ff50b
...@@ -678,6 +678,7 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type, ...@@ -678,6 +678,7 @@ static ssize_t jfs_quota_write(struct super_block *sb, int type,
sb->s_blocksize - offset : towrite; sb->s_blocksize - offset : towrite;
tmp_bh.b_state = 0; tmp_bh.b_state = 0;
tmp_bh.b_size = 1 << inode->i_blkbits;
err = jfs_get_block(inode, blk, &tmp_bh, 1); err = jfs_get_block(inode, blk, &tmp_bh, 1);
if (err) if (err)
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment