cifs: account for primary channel in the interface list
authorShyam Prasad N <sprasad@microsoft.com>
Tue, 14 Mar 2023 11:14:58 +0000 (11:14 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 3 Dec 2023 06:32:09 +0000 (07:32 +0100)
commitb24d42b52bd17c655086ab0192ed2dc3d635aa9c
treeb7b11e16c69287aa1ed5b78774c4461c72faabe0
parent548893404c44fc01a59f17727876e02553146fe6
cifs: account for primary channel in the interface list

[ Upstream commit fa1d0508bdd4a68c5e40f85f635712af8c12f180 ]

The refcounting of server interfaces should account
for the primary channel too. Although this is not
strictly necessary, doing so will account for the primary
channel in DebugData.

Cc: stable@vger.kernel.org
Reviewed-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/smb/client/sess.c
fs/smb/client/smb2ops.c