Fixed a double inode closing in listxattr()

N2009_11_14_FIXES
jpandre 2009-09-18 16:22:22 +00:00
parent f59d0e6ec7
commit e4e485df64
1 changed files with 0 additions and 2 deletions

View File

@ -2219,14 +2219,12 @@ static int ntfs_fuse_listxattr(const char *path, char *list, size_t size)
/* file must be readable */
if (!ntfs_allowed_access(&security,path,ni,S_IREAD)) {
ret = -EACCES;
ntfs_inode_close(ni);
goto exit;
}
#endif
actx = ntfs_attr_get_search_ctx(ni, NULL);
if (!actx) {
ret = -errno;
ntfs_inode_close(ni);
goto exit;
}