diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c index 28a22092d4502709fa6d339c40ac2872aca482fa..848286861c314737961cc91f55f3e574930a17a7 100644 --- a/fs/cifs/inode.c +++ b/fs/cifs/inode.c @@ -649,6 +649,7 @@ struct inode *cifs_iget(struct super_block *sb, unsigned long ino) inode->i_fop = &simple_dir_operations; inode->i_uid = cifs_sb->mnt_uid; inode->i_gid = cifs_sb->mnt_gid; + } else if (rc) { _FreeXid(xid); iget_failed(inode); return ERR_PTR(rc);