From: Djalal Harouni Date: Tue, 13 Dec 2011 01:47:29 +0000 (+0100) Subject: fs/ncpfs: fix error paths and goto statements in ncp_fill_super() X-Git-Tag: v3.2-rc6~18^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=759c361eb95964d0d786f8962224dd0d9e780e6e;p=pandora-kernel.git 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 Signed-off-by: Al Viro --- Reading git-diff-tree failed