Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b2acdddf authored by Anand Jain's avatar Anand Jain Committed by David Sterba
Browse files

Btrfs: add missing brelse when superblock checksum fails



Looks like oversight, call brelse() when checksum fails. Further down the
code, in the non error path, we do call brelse() and so we don't see
brelse() in the goto error paths.

Signed-off-by: default avatarAnand Jain <anand.jain@oracle.com>
Reviewed-by: default avatarDavid Sterba <dsterba@suse.com>
Signed-off-by: default avatarDavid Sterba <dsterba@suse.com>
parent 4ef76753
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2668,6 +2668,7 @@ int open_ctree(struct super_block *sb,
	if (btrfs_check_super_csum(bh->b_data)) {
		printk(KERN_ERR "BTRFS: superblock checksum mismatch\n");
		err = -EINVAL;
		brelse(bh);
		goto fail_alloc;
	}