summaryrefslogtreecommitdiff
path: root/fs/smb/client/connect.c
diff options
context:
space:
mode:
authorPaulo Alcantara <pc@manguebit.com>2023-07-11 20:15:10 +0300
committerSteve French <stfrench@microsoft.com>2023-07-13 07:29:39 +0300
commitbf99f6be2d20146942bce6f9e90a0ceef12cbc1e (patch)
treeb450eef72c474d156f50c778c2606034198694ac /fs/smb/client/connect.c
parentf1f047bd7ce0d73788e04ac02268060a565f7ecb (diff)
downloadlinux-bf99f6be2d20146942bce6f9e90a0ceef12cbc1e.tar.xz
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 'fs/smb/client/connect.c')
0 files changed, 0 insertions, 0 deletions