]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb135b03e8ad0cbd63bce5d86b2cd8ad835e8e59d
tree8b5a78abaeb9339c76ca7653cc9c5a97393cf72f
parent9e9ff2b0d54977b2bbe71c1bf72dea3cd45d47b2
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