ext3: PTR_ERR return of wrong pointer in setup_new_group_blocks()
PATCH 1/1 ext3: PTR_ERR return of wrong pointer in setup_new_group_blocks()
Return the PTR_ERR of the correct pointer.
Signed-off-by Roel Kluin <[email protected]>
--- fs/ext3/resize.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext3/resize.c +1 -1
@@ -266,7 +266,7 @@ static int setup_new_group_blocks(struct super_block *sb, goto exit_bh;if (IS_ERR (gdb =bclean (handle, sb, block))) { - err =PTR_ERR (bh); + err =PTR_ERR (gdb); goto exit_bh; }ext3_journal_dirty_metadata (handle, gdb);
Quoted 3 lines · Roel Kluin
Return the
PTR_ERRof the correct pointer.Signed-off-by Roel Kluin <[email protected]>
Reviewed-by "Theodore Ts'o" <[email protected]>
Thanks for pointing this out! I've added a similar patch for ext4 in the patch queue.
- Ted