]> git.baikalelectronics.ru Git - kernel.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:33:59 +0000 (13:33 +0100)
commit3a02dfc2ba8eb3bad5d655fc442c41bd597dba1f
tree938c5655a872789d542280a508e2c50009806c2c
parenta848bb41687534b6dc1c8172b96423683f4a5043
cifs: Fix smb2_set_path_size()

commit 910a643b3e88ca7b492f117854e0cdad5c78aa40 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