Skip to contentSkip to conversation

ext4: PTR_ERR return of wrong pointer in setup_new_group_blocks()

PATCH In review Roel Kluin 2 participants 2 messages Dec 7, 2009 ext4 file system

lore
Share & tools
lore

Roel Kluin

author
#0 lore raw

PATCH 1/1 ext4: PTR_ERR return of wrong pointer in setup_new_group_blocks()

Return the PTR_ERR of the correct pointer.

---
 fs/ext4/resize.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
fs/ext4/resize.c +1 -1
index 3cfc343..3b2c554 100644
@@ -247,7 +247,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;
 		}
 		ext4_handle_dirty_metadata(handle, NULL, gdb);