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:33:09 +0000 (07:33 +0100)
commitd0b5a680a8ba155befd6df608cfc7bba594a8b81
tree8118bfe08aeacedb5c7e6549c8857b0681bc0b7a
parent1cd8c353708de99d8bfa7db8a0c961a800b1fa7f
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