cifs: Fix smb2_set_path_size()
authorVolker Lendecke <vl@samba.org>
Mon, 13 Mar 2023 15:09:54 +0000 (16:09 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 22 Mar 2023 12:33:59 +0000 (13:33 +0100)
commit72f90f9cf032de1b0cf37d9d211d8c34619fda33
tree938c5655a872789d542280a508e2c50009806c2c
parentc8f31c1a0b7cf1024832980e4629b97c2aac1b42
cifs: Fix smb2_set_path_size()

commit 211baef0eabf4169ce4f73ebd917749d1a7edd74 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2inode.c