logfs: fix a leak in get_sb
authorAl Viro <viro@zeniv.linux.org.uk>
Mon, 26 Jul 2010 08:06:00 +0000 (12:06 +0400)
committerAl Viro <viro@zeniv.linux.org.uk>
Fri, 29 Oct 2010 08:16:48 +0000 (04:16 -0400)
commite5a0726a953daf224ae42bcf5edaa64f71b4e8a7
tree0f0be6f8e0b2324b5e29ac959837ab470afa0053
parent7d945a3aa7608f68dba04083d3421e0b43052660
logfs: fix a leak in get_sb

a) switch ->put_device() to logfs_super *
b) actually call it on early failures in logfs_get_sb_device()

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
fs/logfs/dev_bdev.c
fs/logfs/dev_mtd.c
fs/logfs/logfs.h
fs/logfs/super.c