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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 Jan 2019 07:13:44 +0000 (08:13 +0100)
commit1c69ba8b1453eb1c9f77536433616dab0a147c65
treee8d526f41423ad529fdb1e0f69e516911fc307aa
parent482592b71d257f4e674505af72d8e23405a64478
CIFS: Fix credit calculation for encrypted reads with errors

commit ec678eae746dd25766a61c4095e2b649d3b20b09 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/cifs/smb2ops.c