summaryrefslogtreecommitdiffstats
path: root/fs/fuse/inode.c
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2009-04-28 16:56:35 +0200
committerMiklos Szeredi <mszeredi@suse.cz>2009-04-28 16:56:35 +0200
commitfd9db7297749c05fcf5721ce5393a5a8b8772f2a (patch)
treeaeb596b24d68a9a12b29f7ac4fa4ba5222942158 /fs/fuse/inode.c
parent091069740304c979f957ceacec39c461d0192158 (diff)
downloadtalos-obmc-linux-fd9db7297749c05fcf5721ce5393a5a8b8772f2a.tar.gz
talos-obmc-linux-fd9db7297749c05fcf5721ce5393a5a8b8772f2a.zip
fuse: destroy bdi on error
Destroy bdi on error in fuse_fill_super(). This was an omission from commit 26c3679101dbccc054dcf370143941844ba70531 "fuse: destroy bdi on umount", which moved the bdi_destroy() call from fuse_conn_put() to fuse_put_super(). Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> CC: stable@kernel.org
Diffstat (limited to 'fs/fuse/inode.c')
-rw-r--r--fs/fuse/inode.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/fuse/inode.c b/fs/fuse/inode.c
index 459b73dd45e1..75ca5ac603ae 100644
--- a/fs/fuse/inode.c
+++ b/fs/fuse/inode.c
@@ -908,6 +908,7 @@ static int fuse_fill_super(struct super_block *sb, void *data, int silent)
err_put_root:
dput(root_dentry);
err_put_conn:
+ bdi_destroy(&fc->bdi);
fuse_conn_put(fc);
err_fput:
fput(file);
OpenPOWER on IntegriCloud