cifs: missed ref-counting smb session in find
authorShyam Prasad N <sprasad@microsoft.com>
Sun, 23 May 2021 16:54:42 +0000 (16:54 +0000)
committerSteve French <stfrench@microsoft.com>
Mon, 21 Jun 2021 02:28:17 +0000 (21:28 -0500)
commite695a9ad0305af6e8b0cbc24a54976ac2120cbb3
tree35ad953053b873d49b58f996fde11d43a253492c
parentf3c852b0b0fc0e4ecabbf2e8480c2a088d54b588
cifs: missed ref-counting smb session in find

When we lookup an smb session based on session id,
we did not up the ref-count for the session. This can
potentially cause issues if the session is freed from under us.

Signed-off-by: Shyam Prasad N <sprasad@microsoft.com>
Reviewed-by: Aurelien Aptel <aaptel@suse.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2transport.c