linux/fs/smb/server/vfs_cache.c
Namjae Jeon 18f06bacc1 ksmbd: add refcnt to ksmbd_conn struct
[ Upstream commit ee426bfb9d ]

When sending an oplock break request, opinfo->conn is used,
But freed ->conn can be used on multichannel.
This patch add a reference count to the ksmbd_conn struct
so that it can be freed when it is no longer used.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-10-10 11:57:39 +02:00

865 lines
18 KiB