From 45a641b4084513df76dbf72eec1e757e82490f13 Mon Sep 17 00:00:00 2001 From: Yura Pakhuchiy Date: Mon, 24 Sep 2007 21:08:32 +0300 Subject: [PATCH] ntfsmount: Fix recently introduced bug in attribute/inode close ordering in case if ntfs_fuse_open() failed. --- ntfsprogs/ntfsmount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ntfsprogs/ntfsmount.c b/ntfsprogs/ntfsmount.c index a8525ad9..84c9b869 100644 --- a/ntfsprogs/ntfsmount.c +++ b/ntfsprogs/ntfsmount.c @@ -649,8 +649,8 @@ static int ntfs_fuse_open(const char *org_path, struct fuse_file_info *fi) if (stream_name_len) free(stream_name); if (res) { - ntfs_inode_close(ni); ntfs_attr_close(na); + ntfs_inode_close(ni); } else fi->fh = (uintptr_t)na; return res;