aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--fs/cifs/smb2pdu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/cifs/smb2pdu.c b/fs/cifs/smb2pdu.c
index af032e1a3eac..328e23abd241 100644
--- a/fs/cifs/smb2pdu.c
+++ b/fs/cifs/smb2pdu.c
@@ -990,8 +990,9 @@ SMB2_sess_alloc_buffer(struct SMB2_sess_data *sess_data)
990 req->PreviousSessionId = sess_data->previous_session; 990 req->PreviousSessionId = sess_data->previous_session;
991 991
992 req->Flags = 0; /* MBZ */ 992 req->Flags = 0; /* MBZ */
993 /* to enable echos and oplocks */ 993
994 req->sync_hdr.CreditRequest = cpu_to_le16(3); 994 /* enough to enable echos and oplocks and one max size write */
995 req->sync_hdr.CreditRequest = cpu_to_le16(130);
995 996
996 /* only one of SMB2 signing flags may be set in SMB2 request */ 997 /* only one of SMB2 signing flags may be set in SMB2 request */
997 if (server->sign) 998 if (server->sign)