]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9fb996126611f9cc22568a5c8c4f9fbc32f82807
tree35ad953053b873d49b58f996fde11d43a253492c
parentf8983752c06dec07d6cec5a877553801b5d3e31e
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