Commit 3e272579 authored by Ronnie Sahlberg's avatar Ronnie Sahlberg Committed by Steve French

cifs: always add credits back for unsolicited PDUs

not just if CONFIG_CIFS_DEBUG2 is enabled.
Signed-off-by: default avatarRonnie Sahlberg <lsahlber@redhat.com>
Reviewed-by: default avatarPavel Shilovsky <pshilov@microsoft.com>
CC: Stable <stable@vger.kernel.org>
Signed-off-by: default avatarSteve French <stfrench@microsoft.com>
parent 0aa3a24b
...@@ -1223,11 +1223,11 @@ cifs_demultiplex_thread(void *p) ...@@ -1223,11 +1223,11 @@ cifs_demultiplex_thread(void *p)
atomic_read(&midCount)); atomic_read(&midCount));
cifs_dump_mem("Received Data is: ", bufs[i], cifs_dump_mem("Received Data is: ", bufs[i],
HEADER_SIZE(server)); HEADER_SIZE(server));
smb2_add_credits_from_hdr(bufs[i], server);
#ifdef CONFIG_CIFS_DEBUG2 #ifdef CONFIG_CIFS_DEBUG2
if (server->ops->dump_detail) if (server->ops->dump_detail)
server->ops->dump_detail(bufs[i], server->ops->dump_detail(bufs[i],
server); server);
smb2_add_credits_from_hdr(bufs[i], server);
cifs_dump_mids(server); cifs_dump_mids(server);
#endif /* CIFS_DEBUG2 */ #endif /* CIFS_DEBUG2 */
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment