cifs: use tcon allocation functions even for dummy tcon
authorShyam Prasad N <sprasad@microsoft.com>
Fri, 10 Feb 2023 16:34:31 +0000 (16:34 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:33:25 +0000 (09:33 +0100)
commit212c79117f8c5d676aa33b24d1ab06ec36e88440
treee785041b6e5c1a5dba78594b77896fc8d38f8c20
parent41832c62a75dad530dc5a2856c92ae5459d497e5
cifs: use tcon allocation functions even for dummy tcon

[ Upstream commit df57109bd50b9ed6911f3c2aa914189fe4c1fe2c ]

In smb2_reconnect_server, we allocate a dummy tcon for
calling reconnect for just the session. This should be
allocated using tconInfoAlloc, and not kmalloc.

Fixes: 3663c9045f51 ("cifs: check reconnects for channels of active tcons too")
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2pdu.c