OSDN Git Service

CIFS: Count SMB3 credits for malformed pending responses
authorPavel Shilovsky <pshilov@microsoft.com>
Thu, 24 Jan 2019 01:11:16 +0000 (17:11 -0800)
committerSteve French <stfrench@microsoft.com>
Tue, 5 Mar 2019 02:06:39 +0000 (20:06 -0600)
commit66265f134acfb202465fecfbeb61fefb66595c40
tree0ae3f1ec760bb32727b86b97a8fcdc1f25190e1d
parent82e0457af5f92126a0a6389d827b1e4daad8e0fd
CIFS: Count SMB3 credits for malformed pending responses

Even if a response is malformed, we should count credits
granted by the server to avoid miscalculations and unnecessary
reconnects due to client or server bugs. If the response has
been received partially, the session will be reconnected anyway
on the next iteration of the demultiplex thread, so counting
credits for such cases shouldn't break things.

Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifsglob.h
fs/cifs/cifssmb.c
fs/cifs/connect.c
fs/cifs/smb2ops.c