]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitded8a83e237fd3f0320c3c37bd61cfee585d235d
tree374961276f54749703015110ad665a20f56f8531
parent90dad3d5477a3aa8f52ed7e2f5027c011858a9ab
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