]> 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)
commitcee0c8487785fe8e000e55ea15b8b3d6d8c261ea
tree35ad953053b873d49b58f996fde11d43a253492c
parent04f7a908db47097337d989bbf52f60f837b65dbf
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