author: Steve French <stfrench@microsoft.com> 2021-06-19 15:53:18 -0500
committer: Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2021-07-14 17:06:36 +0200
commit: fa004a75b5ff7475dba4f10db04811a1635319f3
parent: 9a0c82374f675c42ab6b3d568bd7d8849cb53702
Commit Summary:
Diffstat:
1 file changed, 3 insertions, 1 deletion
diff --git a/fs/cifs/inode.c b/fs/cifs/inode.c
index 1dfa57982522..f60f068d33e8 100644
--- a/fs/cifs/inode.c
+++ b/fs/cifs/inode.c
@@ -367,9 +367,12 @@ cifs_get_file_info_unix(struct file *filp)
} else if (rc == -EREMOTE) {
cifs_create_dfs_fattr(&fattr, inode->i_sb);
rc = 0;
- }
+ } else
+ goto cifs_gfiunix_out;
rc = cifs_fattr_to_inode(inode, &fattr);
+
+cifs_gfiunix_out:
free_xid(xid);
return rc;
}