diff options
author | Pavel Shilovsky <pshilov@microsoft.com> | 2019-01-24 02:11:16 +0100 |
---|---|---|
committer | Steve French <stfrench@microsoft.com> | 2019-03-05 03:06:39 +0100 |
commit | 66265f134acfb202465fecfbeb61fefb66595c40 (patch) | |
tree | 0ae3f1ec760bb32727b86b97a8fcdc1f25190e1d /fs/cifs/cifssmb.c | |
parent | CIFS: Do not log credits when unmounting a share (diff) | |
download | linux-66265f134acfb202465fecfbeb61fefb66595c40.tar.xz linux-66265f134acfb202465fecfbeb61fefb66595c40.zip |
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>
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index 6bd3605b9b65..683c7c9d5a02 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c @@ -1605,7 +1605,7 @@ cifs_readv_receive(struct TCP_Server_Info *server, struct mid_q_entry *mid) } if (server->ops->is_status_pending && - server->ops->is_status_pending(buf, server, 0)) { + server->ops->is_status_pending(buf, server)) { cifs_discard_remaining_data(server); return -1; } |