CIFS: Fix credit calculation for encrypted reads with errors
authorPavel Shilovsky <pshilov@microsoft.com>
Fri, 18 Jan 2019 23:38:11 +0000 (15:38 -0800)
committerSteve French <stfrench@microsoft.com>
Thu, 24 Jan 2019 20:52:05 +0000 (14:52 -0600)
commitec678eae746dd25766a61c4095e2b649d3b20b09
tree060d7ec05e67b14b327dcf61a32b83c579cb74df
parent8004c78c68e894e4fd5ac3c22cc22eb7dc24cabc
CIFS: Fix credit calculation for encrypted reads with errors

We do need to account for credits received in error responses
to read requests on encrypted sessions.

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/smb2ops.c