Skip to content

Commit

Permalink
ext3: PTR_ERR return of wrong pointer in setup_new_group_blocks()
Browse files Browse the repository at this point in the history
Return the PTR_ERR of the correct pointer.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: Jan Kara <jack@suse.cz>
  • Loading branch information
RoelKluin authored and jankara committed Dec 10, 2009
1 parent 68eb3db commit 8e0eb40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/ext3/resize.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 8e0eb40

Please sign in to comment.