Shyam Prasad N cc7d79d4fa cifs: fix interface count calculation during refresh
The last fix to iface_count did fix the overcounting issue.
However, during each refresh, we could end up undercounting
the iface_count, if a match was found.

Fixing this by doing increments and decrements instead of
setting it to 0 before each parsing of server interfaces.

Fixes: 096bbeec7bd6 ("smb3: interface count displayed incorrectly")
Cc: stable@vger.kernel.org # 6.1
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>
2023-01-04 23:18:07 -06:00
..
2022-12-14 12:20:00 -08:00
2022-12-19 08:04:50 -06:00
2022-10-20 10:13:32 +02:00
2022-12-19 08:03:12 -06:00
2022-12-19 08:03:12 -06:00
2022-12-15 14:53:14 -08:00
2022-01-19 11:21:08 -06:00
2021-04-25 16:28:23 -05:00
2022-10-20 10:13:32 +02:00