]> git.hungrycats.org Git - linux/commitdiff
JFS: return code from sb_bread was incorrectly checked
authorDave Kleikamp <shaggy@shaggy.austin.ibm.com>
Tue, 15 Oct 2002 05:43:56 +0000 (00:43 -0500)
committerDave Kleikamp <shaggy@shaggy.austin.ibm.com>
Tue, 15 Oct 2002 05:43:56 +0000 (00:43 -0500)
fs/jfs/jfs_mount.c

index 223d700da9270b9bd6f2634c1282275119c642d0..7859b2f22d2820b1082948bb14ffa0035193041e 100644 (file)
@@ -478,12 +478,12 @@ int readSuper(struct super_block *sb, struct buffer_head **bpp)
 {
        /* read in primary superblock */
        *bpp = sb_bread(sb, SUPER1_OFF >> sb->s_blocksize_bits);
-       if (bpp)
+       if (*bpp)
                return 0;
 
        /* read in secondary/replicated superblock */
        *bpp = sb_bread(sb, SUPER2_OFF >> sb->s_blocksize_bits);
-       if (bpp)
+       if (*bpp)
                return 0;
 
        return -EIO;