aboutsummaryrefslogtreecommitdiff
path: root/fs/ntfs3
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@cjr.nz>2023-01-06 13:34:36 -0300
committerSteve French <stfrench@microsoft.com>2023-01-09 13:47:02 -0600
commitba5d4c1596cada37793d405dd18d695cd3508902 (patch)
tree4f6c82237ec9b9495585581f31718c188ddab981 /fs/ntfs3
parent29cf28235e3e57e0af01ae29db57a75f87a2ada8 (diff)
cifs: fix file info setting in cifs_open_file()
In cifs_open_file(), @buf must hold a pointer to a cifs_open_info_data structure which is passed by cifs_nt_open(), so assigning @buf directly to @fi was obviously wrong. Fix this by passing a valid FILE_ALL_INFO structure to SMBLegacyOpen() and CIFS_open(), and then copy the set structure to the corresponding cifs_open_info_data::fi field with move_cifs_info_to_smb2() helper. Link: https://bugzilla.kernel.org/show_bug.cgi?id=216889 Fixes: 76894f3e2f71 ("cifs: improve symlink handling for smb2+") Signed-off-by: Paulo Alcantara (SUSE) <pc@cjr.nz> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'fs/ntfs3')
0 files changed, 0 insertions, 0 deletions