]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Dec 2009 16:07:51 +0000 (08:07 -0800)
(cherry picked from commit c09eef305dd43846360944ad072f051f964fa383)

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
fs/ext4/resize.c

index 68b0351fc6474da9885d3c3d0d38fb027e338612..96302cdb8dc35955df9b58601b8fb5283e4282ba 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);