Commit d7dd034c authored by Shuhao Fu's avatar Shuhao Fu Committed by Greg Kroah-Hartman
Browse files

smb: client: Fix refcount leak for cifs_sb_tlink



commit c2b77f42 upstream.

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: 8ceb9843 ("CIFS: Move rename to ops struct")
Fixes: 2f1afe25 ("cifs: Use smb 2 - 3 and cifsacl mount options getacl functions")
Fixes: 366ed846 ("cifs: Use smb 2 - 3 and cifsacl mount options setacl function")
Cc: stable@vger.kernel.org
Signed-off-by: default avatarShuhao Fu <sfual@cse.ust.hk>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent f231f248
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment