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)
committerSteve French <stfrench@microsoft.com>
Tue, 21 Feb 2023 07:25:07 +0000 (01:25 -0600)
commitdf57109bd50b9ed6911f3c2aa914189fe4c1fe2c
treed200e0f5a59fcc6209adb30ec328eab06b34fa6e
parentea90708d3cf3d0d92c02afe445ad463fb3c6bf10
cifs: use tcon allocation functions even for dummy tcon

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>
fs/cifs/smb2pdu.c