CIFS: Fix credits calculations for reads with errors
authorPavel Shilovsky <pshilov@microsoft.com>
Thu, 17 Jan 2019 23:29:26 +0000 (15:29 -0800)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jan 2019 20:52:05 +0000 (14:52 -0600)
commit8004c78c68e894e4fd5ac3c22cc22eb7dc24cabc
tree374961276f54749703015110ad665a20f56f8531
parentef68e831840c40c7d01b328b3c0f5d8c4796c232
CIFS: Fix credits calculations for reads with errors

Currently we mark MID as malformed if we get an error from server
in a read response. This leads to not properly processing credits
in the readv callback. Fix this by marking such a response as
normal received response and process it appropriately.

Cc: <stable@vger.kernel.org>
Signed-off-by: Pavel Shilovsky <pshilov@microsoft.com>
Reviewed-by: Ronnie Sahlberg <lsahlber@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/cifssmb.c