Commit 16dd9b8
cifs: added WARN_ON for all the count decrements
We have a few ref counters srv_count, ses_count and
tc_count which we use for ref counting. Added a WARN_ON
during the decrement of each of these counters to make
sure that they don't go below their minimum values.
Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>1 parent 63f94e9 commit 16dd9b8
2 files changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1295 | 1295 | | |
1296 | 1296 | | |
1297 | 1297 | | |
| 1298 | + | |
| 1299 | + | |
| 1300 | + | |
1298 | 1301 | | |
1299 | 1302 | | |
1300 | 1303 | | |
| |||
1654 | 1657 | | |
1655 | 1658 | | |
1656 | 1659 | | |
| 1660 | + | |
| 1661 | + | |
| 1662 | + | |
1657 | 1663 | | |
1658 | 1664 | | |
1659 | 1665 | | |
| |||
2021 | 2027 | | |
2022 | 2028 | | |
2023 | 2029 | | |
| 2030 | + | |
| 2031 | + | |
| 2032 | + | |
2024 | 2033 | | |
2025 | 2034 | | |
2026 | 2035 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2910 | 2910 | | |
2911 | 2911 | | |
2912 | 2912 | | |
| 2913 | + | |
| 2914 | + | |
2913 | 2915 | | |
2914 | 2916 | | |
2915 | 2917 | | |
| |||
0 commit comments