mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-18 19:12:56 +00:00
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:8ceb984379("CIFS: Move rename to ops struct") Fixes:2f1afe2599("cifs: Use smb 2 - 3 and cifsacl mount options getacl functions") Fixes:366ed846df("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>
This commit is contained in:
parent
d451a0e88e
commit
c2b77f4220
2 changed files with 8 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue