linux/fs/smb
Paulo Alcantara b27ea9c96e smb: client: fix double put of @cfile in smb2_rename_path()
[ Upstream commit 3523a3df03 ]

If smb2_set_path_attr() is called with a valid @cfile and returned
-EINVAL, we need to call cifs_get_writable_path() again as the
reference of @cfile was already dropped by previous smb2_compound_op()
call.

Fixes: 71f15c90e7 ("smb: client: retry compound request without reusing lease")
Signed-off-by: Paulo Alcantara (Red Hat) <pc@manguebit.com>
Cc: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2024-09-12 11:11:44 +02:00
..
client smb: client: fix double put of @cfile in smb2_rename_path() 2024-09-12 11:11:44 +02:00
common ksmbd: return FILE_DEVICE_DISK instead of super magic 2024-07-25 09:50:55 +02:00
server smb/server: fix potential null-ptr-deref of lease_ctx_info in smb2_open() 2024-09-12 11:11:39 +02:00
Kconfig smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00
Makefile smb: move client and server files to common directory fs/smb 2023-05-24 16:29:21 -05:00