aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/smb2pdu.c
diff options
context:
space:
mode:
authorPavel Shilovsky <pshilov@microsoft.com>2019-07-22 11:38:22 -0700
committerSteve French <stfrench@microsoft.com>2019-08-05 22:50:13 -0500
commit3edeb4a4146dc3b54d6fa71b7ee0585cb52ebfdf (patch)
tree6c4487f7274644d38f128e31e37bba38f9880085 /fs/cifs/smb2pdu.c
parentSMB3: Fix deadlock in validate negotiate hits reconnect (diff)
downloadlinux-dev-3edeb4a4146dc3b54d6fa71b7ee0585cb52ebfdf.tar.xz
linux-dev-3edeb4a4146dc3b54d6fa71b7ee0585cb52ebfdf.zip
SMB3: Fix potential memory leak when processing compound chain
When a reconnect happens in the middle of processing a compound chain the code leaks a buffer from the memory pool. Fix this by properly checking for a return code and freeing buffers in case of error. Also maintain a buf variable to be equal to either smallbuf or bigbuf depending on a response buffer size while parsing a chain and when returning to the caller. Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com> Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions