]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ksmbd: add mnt_want_write to ksmbd vfs functions
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 31 Dec 2023 07:12:42 +0000 (16:12 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 5 Jan 2024 14:18:30 +0000 (15:18 +0100)
commitb069977b2b471a0496d82fa71d46248d732a384d
tree5aa290e89faa1f75e9bb2f052c0d3fc4a06461b6
parent13a5045011ec989e490228c29dc1eea5d73f354b
ksmbd: add mnt_want_write to ksmbd vfs functions

[ Upstream commit 40b268d384a22276dca1450549f53eed60e21deb ]

ksmbd is doing write access using vfs helpers. There are the cases that
mnt_want_write() is not called in vfs helper. This patch add missing
mnt_want_write() to ksmbd vfs functions.

Cc: stable@vger.kernel.org
Cc: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/server/smb2pdu.c
fs/smb/server/smbacl.c
fs/smb/server/vfs.c
fs/smb/server/vfs.h
fs/smb/server/vfs_cache.c