Commit 4d1411a
committed
smb: client: Fix refcount leak for cifs_sb_tlink
JIRA: https://issues.redhat.com/browse/RHEL-114699
commit c2b77f4
Author: Shuhao Fu <sfual@cse.ust.hk>
Date: Thu Oct 16 02:52:55 2025 +0000
smb: client: Fix refcount leak for cifs_sb_tlink
Fix three refcount inconsistency issues related to `cifs_sb_tlink`.
Comments for `cifs_sb_tlink` state that `cifs_put_tlink()` needs to be
called after successful calls to `cifs_sb_tlink()`. Three calls fail to
update refcount accordingly, leading to possible resource leaks.
Fixes: 8ceb984 ("CIFS: Move rename to ops struct")
Fixes: 2f1afe2 ("cifs: Use smb 2 - 3 and cifsacl mount options getacl functions")
Fixes: 366ed84 ("cifs: Use smb 2 - 3 and cifsacl mount options setacl function")
Cc: stable@vger.kernel.org
Signed-off-by: Shuhao Fu <sfual@cse.ust.hk>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Paulo Alcantara <paalcant@redhat.com>1 parent 45abc0e commit 4d1411a
2 files changed
+8
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2411 | 2411 | | |
2412 | 2412 | | |
2413 | 2413 | | |
2414 | | - | |
2415 | | - | |
| 2414 | + | |
| 2415 | + | |
| 2416 | + | |
| 2417 | + | |
2416 | 2418 | | |
2417 | 2419 | | |
2418 | 2420 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3082 | 3082 | | |
3083 | 3083 | | |
3084 | 3084 | | |
3085 | | - | |
3086 | | - | |
| 3085 | + | |
3087 | 3086 | | |
3088 | 3087 | | |
3089 | 3088 | | |
| |||
3115 | 3114 | | |
3116 | 3115 | | |
3117 | 3116 | | |
| 3117 | + | |
3118 | 3118 | | |
3119 | 3119 | | |
3120 | 3120 | | |
| |||
3155 | 3155 | | |
3156 | 3156 | | |
3157 | 3157 | | |
3158 | | - | |
3159 | | - | |
| 3158 | + | |
3160 | 3159 | | |
3161 | 3160 | | |
3162 | 3161 | | |
| |||
3177 | 3176 | | |
3178 | 3177 | | |
3179 | 3178 | | |
| 3179 | + | |
3180 | 3180 | | |
3181 | 3181 | | |
3182 | 3182 | | |
| |||
0 commit comments