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:Shuhao Fu <sfual@cse.ust.hk> Signed-off-by:
Steve French <stfrench@microsoft.com> Signed-off-by:
Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Loading
Please sign in to comment