diff options
-rw-r--r-- | fs/cifs/connect.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c index e9f9248cb3fe..c682be8f2984 100644 --- a/fs/cifs/connect.c +++ b/fs/cifs/connect.c | |||
@@ -417,9 +417,14 @@ incomplete_rcv: | |||
417 | msleep(1); /* minimum sleep to prevent looping | 417 | msleep(1); /* minimum sleep to prevent looping |
418 | allowing socket to clear and app threads to set | 418 | allowing socket to clear and app threads to set |
419 | tcpStatus CifsNeedReconnect if server hung */ | 419 | tcpStatus CifsNeedReconnect if server hung */ |
420 | if (pdu_length < 4) | 420 | if (pdu_length < 4) { |
421 | iov.iov_base = (4 - pdu_length) + | ||
422 | (char *)smb_buffer; | ||
423 | iov.iov_len = pdu_length; | ||
424 | smb_msg.msg_control = NULL; | ||
425 | smb_msg.msg_controllen = 0; | ||
421 | goto incomplete_rcv; | 426 | goto incomplete_rcv; |
422 | else | 427 | } else |
423 | continue; | 428 | continue; |
424 | } else if (length <= 0) { | 429 | } else if (length <= 0) { |
425 | if (server->tcpStatus == CifsNew) { | 430 | if (server->tcpStatus == CifsNew) { |