]> www.infradead.org Git - users/dwmw2/linux.git/commit
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:15:40 +0000 (08:15 +0100)
commit207dea8d8369d44d30ec91b26ca438b6b5453710
treeb40a41f9d86d5f4ad511a08071979079b03ee667
parent4caf43f9376c751a59f3fe11b7f951c0d1a39feb
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