Skip to content

Commit 8e0eb40

Browse files
RoelKluinjankara
authored andcommitted
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 <roel.kluin@gmail.com> Signed-off-by: Jan Kara <jack@suse.cz>
1 parent 68eb3db commit 8e0eb40

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎fs/ext3/resize.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ static int setup_new_group_blocks(struct super_block *sb,
266266
goto exit_bh;
267267

268268
if (IS_ERR(gdb = bclean(handle, sb, block))) {
269-
err = PTR_ERR(bh);
269+
err = PTR_ERR(gdb);
270270
goto exit_bh;
271271
}
272272
ext3_journal_dirty_metadata(handle, gdb);

0 commit comments

Comments
 (0)