diff options
author | Paulo Alcantara <pc@manguebit.com> | 2023-07-11 14:15:10 -0300 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2023-07-12 23:29:39 -0500 |
commit | bf99f6be2d20146942bce6f9e90a0ceef12cbc1e (patch) | |
tree | b450eef72c474d156f50c778c2606034198694ac /lib/crypto/mpi | |
parent | f1f047bd7ce0d73788e04ac02268060a565f7ecb (diff) |
smb: client: fix missed ses refcounting
Use new cifs_smb_ses_inc_refcount() helper to get an active reference
of @ses and @ses->dfs_root_ses (if set). This will prevent
@ses->dfs_root_ses of being put in the next call to cifs_put_smb_ses()
and thus potentially causing an use-after-free bug.
Fixes: 8e3554150d6c ("cifs: fix sharing of DFS connections")
Signed-off-by: Paulo Alcantara (SUSE) <pc@manguebit.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to 'lib/crypto/mpi')
0 files changed, 0 insertions, 0 deletions