CIFS: Do not assume one credit for async responses
authorPavel Shilovsky <pshilov@microsoft.com>
Tue, 15 Jan 2019 23:08:48 +0000 (15:08 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Feb 2019 09:25:44 +0000 (10:25 +0100)
commitb1765ebd9d12c3aa46e1c94764723a373ad57341
tree1c4b9b0c2ab8b4024f485ac8983a972514572f35
parent6804b3ecbe20654891324ef82f840ba02d642d6c
CIFS: Do not assume one credit for async responses

[ Upstream commit 0fd1d37b0501efc6e295f56ab55cdaff784aa50c ]

If we don't receive a response we can't assume that the server
granted one credit. Assume zero credits in such cases.

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: Sasha Levin <sashal@kernel.org>
fs/cifs/smb2pdu.c