diff options
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r-- | fs/cifs/transport.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index e104c1ad2da3..c86b7077b92f 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c | |||
@@ -361,22 +361,8 @@ SendReceive2(const unsigned int xid, struct cifsSesInfo *ses, | |||
361 | return -ENOMEM; | 361 | return -ENOMEM; |
362 | } | 362 | } |
363 | 363 | ||
364 | if (in_buf->smb_buf_length > CIFSMaxBufSize + MAX_CIFS_HDR_SIZE - 4) { | ||
365 | up(&ses->server->tcpSem); | ||
366 | cERROR(1, | ||
367 | ("Illegal length, greater than maximum frame, %d ", | ||
368 | in_buf->smb_buf_length)); | ||
369 | DeleteMidQEntry(midQ); | ||
370 | /* If not lock req, update # of requests on wire to server */ | ||
371 | if(long_op < 3) { | ||
372 | atomic_dec(&ses->server->inFlight); | ||
373 | wake_up(&ses->server->request_q); | ||
374 | } | ||
375 | return -EIO; | ||
376 | } | ||
377 | |||
378 | /* BB FIXME */ | 364 | /* BB FIXME */ |
379 | /* rc = cifs_sign_smb2(in_buf, data, ses->server, &midQ->sequence_number); */ | 365 | /* rc = cifs_sign_smb2(iov, n_vec, ses->server, &midQ->sequence_number); */ |
380 | 366 | ||
381 | midQ->midState = MID_REQUEST_SUBMITTED; | 367 | midQ->midState = MID_REQUEST_SUBMITTED; |
382 | rc = smb_send2(ses->server->ssocket, iov, n_vec, | 368 | rc = smb_send2(ses->server->ssocket, iov, n_vec, |