]> www.infradead.org Git - users/jedix/linux-maple.git/commit
cifs: all initializations for tcon should happen in tcon_info_alloc
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 30 Jun 2025 17:39:34 +0000 (23:09 +0530)
committerSteve French <stfrench@microsoft.com>
Mon, 30 Jun 2025 19:44:44 +0000 (14:44 -0500)
commit74ebd02163fde05baa23129e06dde4b8f0f2377a
tree60328d1ce98552679b41699d0809d449bf627804
parent3bbe46716092d8ef6b0df4b956f585c5cd0fc78e
cifs: all initializations for tcon should happen in tcon_info_alloc

Today, a few work structs inside tcon are initialized inside
cifs_get_tcon and not in tcon_info_alloc. As a result, if a tcon
is obtained from tcon_info_alloc, but not called as a part of
cifs_get_tcon, we may trip over.

Cc: <stable@vger.kernel.org>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/cifsproto.h
fs/smb/client/connect.c
fs/smb/client/misc.c