aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorRonnie Sahlberg <lsahlber@redhat.com>2019-07-06 06:43:08 +1000
committerSteve French <stfrench@microsoft.com>2019-07-07 22:37:43 -0500
commit3e2725796cbdfe4efc7eb7b27cacaeac2ddad1a5 (patch)
tree9bf07d9dee20f6a0bd1bd4a20dcefd04d6ebb32c /fs
parentfs: cifs: cifsssmb: Change return type of convert_ace_to_cifs_ace (diff)
downloadlinux-dev-3e2725796cbdfe4efc7eb7b27cacaeac2ddad1a5.tar.xz
linux-dev-3e2725796cbdfe4efc7eb7b27cacaeac2ddad1a5.zip
cifs: always add credits back for unsolicited PDUs
not just if CONFIG_CIFS_DEBUG2 is enabled. Signed-off-by: Ronnie Sahlberg <lsahlber@redhat.com> Reviewed-by: Pavel Shilovsky <pshilov@microsoft.com> CC: Stable <stable@vger.kernel.org> Signed-off-by: Steve French <stfrench@microsoft.com>
Diffstat (limited to '')
-rw-r--r--fs/cifs/connect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index b8a60060d329..f1061e6579e4 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -1223,11 +1223,11 @@ next_pdu:
atomic_read(&midCount));
cifs_dump_mem("Received Data is: ", bufs[i],
HEADER_SIZE(server));
+ smb2_add_credits_from_hdr(bufs[i], server);
#ifdef CONFIG_CIFS_DEBUG2
if (server->ops->dump_detail)
server->ops->dump_detail(bufs[i],
server);
- smb2_add_credits_from_hdr(bufs[i], server);
cifs_dump_mids(server);
#endif /* CIFS_DEBUG2 */
}