ext4: Return the PTR_ERR of the correct pointer in setup_new_group_blocks()
authorRoel Kluin <roel.kluin@gmail.com>
Mon, 7 Dec 2009 15:38:16 +0000 (10:38 -0500)
committerTheodore Ts'o <tytso@mit.edu>
Mon, 7 Dec 2009 15:38:16 +0000 (10:38 -0500)
Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
fs/ext4/resize.c

index 3cfc343c41b53e3eae9e3d635519c653f600acc6..3b2c5541d8a686fe7c780a512c0acd3e6771b3ab 100644 (file)
@@ -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);