alloc freeing of a null inode

(Logical change 1.400)
edge.strict_endians
flatcap.org!ntfs 2004-05-26 07:41:00 +00:00
parent b69d1980b3
commit c05355e711
1 changed files with 3 additions and 0 deletions

View File

@ -205,6 +205,9 @@ err_out:
*/
int ntfs_inode_close(ntfs_inode *ni)
{
if (!ni)
return 0;
/* If we have dirty metadata, write it out. */
if (NInoDirty(ni) || NInoAttrListDirty(ni)) {
if (ntfs_inode_sync(ni)) {