mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-08 18:57:22 +00:00
smb: client: Fix refcount leak for cifs_sb_tlink
commitc2b77f4220upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
4980373c5f
commit
896bb31e14
2 changed files with 8 additions and 6 deletions
Loading…
Add table
Add a link
Reference in a new issue