Btrfs: add missing brelse when superblock checksum fails
authorAnand Jain <anand.jain@oracle.com>
Wed, 7 Oct 2015 09:23:23 +0000 (17:23 +0800)
committerDavid Sterba <dsterba@suse.com>
Thu, 7 Jan 2016 13:26:53 +0000 (14:26 +0100)
commitb2acdddfad13c38a1e8b927d83c3cf321f63601a
tree30ff6c1f9a64f202b26809f98ca0314100776236
parent4ef7675344d687a0ef5b0d7c0cee12da005870c0
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: Anand Jain <anand.jain@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/disk-io.c