Skip to content

Commit

Permalink
fuse: destroy bdi on error
Browse files Browse the repository at this point in the history
Destroy bdi on error in fuse_fill_super().

This was an omission from commit 26c3679
"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
  • Loading branch information
Miklos Szeredi committed Apr 28, 2009
1 parent 0910697 commit fd9db72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fs/fuse/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fd9db72

Please sign in to comment.