Commit c2b77f4
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: [email protected]
Signed-off-by: Shuhao Fu <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent d451a0e commit c2b77f4
2 files changed
Lines changed: 8 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2431 | 2431 | | |
2432 | 2432 | | |
2433 | 2433 | | |
2434 | | - | |
2435 | | - | |
| 2434 | + | |
| 2435 | + | |
| 2436 | + | |
| 2437 | + | |
2436 | 2438 | | |
2437 | 2439 | | |
2438 | 2440 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3212 | 3212 | | |
3213 | 3213 | | |
3214 | 3214 | | |
3215 | | - | |
3216 | | - | |
| 3215 | + | |
3217 | 3216 | | |
3218 | 3217 | | |
3219 | 3218 | | |
| |||
3245 | 3244 | | |
3246 | 3245 | | |
3247 | 3246 | | |
| 3247 | + | |
3248 | 3248 | | |
3249 | 3249 | | |
3250 | 3250 | | |
| |||
3285 | 3285 | | |
3286 | 3286 | | |
3287 | 3287 | | |
3288 | | - | |
3289 | | - | |
| 3288 | + | |
3290 | 3289 | | |
3291 | 3290 | | |
3292 | 3291 | | |
| |||
3307 | 3306 | | |
3308 | 3307 | | |
3309 | 3308 | | |
| 3309 | + | |
3310 | 3310 | | |
3311 | 3311 | | |
3312 | 3312 | | |
| |||
0 commit comments