diff options
Diffstat (limited to 'fs/cifs/cifssmb.c')
-rw-r--r-- | fs/cifs/cifssmb.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/fs/cifs/cifssmb.c b/fs/cifs/cifssmb.c index d69b835c12ec..fcf98cfd4158 100644 --- a/fs/cifs/cifssmb.c +++ b/fs/cifs/cifssmb.c | |||
@@ -198,10 +198,11 @@ small_smb_init_no_tcon(int smb_command, int wct, struct cifsSesInfo *ses, | |||
198 | if(rc) | 198 | if(rc) |
199 | return rc; | 199 | return rc; |
200 | 200 | ||
201 | buffer = (struct smb_hdr *)*request_buf; | ||
201 | buffer->Mid = GetNextMid(ses->server); | 202 | buffer->Mid = GetNextMid(ses->server); |
202 | if (ses->capabilities & CAP_UNICODE) | 203 | if (ses->capabilities & CAP_UNICODE) |
203 | buffer->Flags2 |= SMBFLG2_UNICODE; | 204 | buffer->Flags2 |= SMBFLG2_UNICODE; |
204 | if (ses->capabilities & CAP_STATUS32) { | 205 | if (ses->capabilities & CAP_STATUS32) |
205 | buffer->Flags2 |= SMBFLG2_ERR_STATUS; | 206 | buffer->Flags2 |= SMBFLG2_ERR_STATUS; |
206 | 207 | ||
207 | /* uid, tid can stay at zero as set in header assemble */ | 208 | /* uid, tid can stay at zero as set in header assemble */ |