summaryrefslogtreecommitdiffstats
path: root/fs/ncpfs/dir.c
diff options
context:
space:
mode:
authorDjalal Harouni <tixxdz@opendz.org>2011-12-13 02:47:29 +0100
committerAl Viro <viro@zeniv.linux.org.uk>2011-12-14 06:45:33 +0100
commit759c361eb95964d0d786f8962224dd0d9e780e6e (patch)
tree9a054b2e2993dafd4bc87871192afdf532e09ad6 /fs/ncpfs/dir.c
parentconfigfs: register_filesystem() called too early (diff)
downloadlinux-759c361eb95964d0d786f8962224dd0d9e780e6e.tar.xz
linux-759c361eb95964d0d786f8962224dd0d9e780e6e.zip
fs/ncpfs: fix error paths and goto statements in ncp_fill_super()
The label 'out_bdi' should be followed by bdi_destroy() instead of fput() which should be after the 'out_fput' label. If bdi_setup_and_register() fails then jump to the 'out_fput' label instead of the 'out_bdi' one. If fget(data.info_fd) fails then jump to the previously fixed 'out_bdi' label to call bdi_destroy() otherwise the bdi object will not be destroyed. Compile tested only. Signed-off-by: Djalal Harouni <tixxdz@opendz.org> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'fs/ncpfs/dir.c')
0 files changed, 0 insertions, 0 deletions