cifs: Fix smb2_set_path_size()
authorVolker Lendecke <vl@samba.org>
Mon, 13 Mar 2023 15:09:54 +0000 (16:09 +0100)
committerSteve French <stfrench@microsoft.com>
Tue, 14 Mar 2023 22:36:44 +0000 (17:36 -0500)
commit211baef0eabf4169ce4f73ebd917749d1a7edd74
treeff56c1571f4553fd306b3156b322b7914e20ec3c
parentd0dc41119905f740e8d5594adce277f7c0de8c92
cifs: Fix smb2_set_path_size()

If cifs_get_writable_path() finds a writable file, smb2_compound_op()
must use that file's FID and not the COMPOUND_FID.

Cc: stable@vger.kernel.org
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2inode.c