cifs: add WARN_ON for when chan_count goes below minimum
authorShyam Prasad N <sprasad@microsoft.com>
Mon, 19 Jul 2021 14:04:11 +0000 (14:04 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 3 Jan 2022 02:38:46 +0000 (20:38 -0600)
commit2e0fa298d149e07005504350358066f380f72b52
tree8b5a78abaeb9339c76ca7653cc9c5a97393cf72f
parent66eb0c6e66617cace0d626d48819bf2b5fbf9307
cifs: add WARN_ON for when chan_count goes below minimum

chan_count keeps track of the total number of channels.
Since at least the primary channel will always be connected,
this value can never go below 1. Warn if that happens.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/sess.c