]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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:30:03 +0000 (13:30 +0100)
commit7b18dea697e400dd91c2a0447cebf1f5fe9f5d1c
tree78375d0f6514a61a0df8ad816c504e8895f37104
parentec663c410ce0023e13f56a95e096be9cd6d471c2
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