diff options
Diffstat (limited to 'fs/cifs')
-rw-r--r-- | fs/cifs/transport.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 7e10b13d130b..7ebe6599ed3a 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c | |||
@@ -1067,8 +1067,7 @@ SendReceiveBlockingLock(const unsigned int xid, struct cifsTconInfo *tcon, | |||
1067 | 1067 | ||
1068 | /* rcvd frame is ok */ | 1068 | /* rcvd frame is ok */ |
1069 | 1069 | ||
1070 | if ((midQ->resp_buf == NULL) || (out_buf == NULL) | 1070 | if ((out_buf == NULL) || (midQ->midState != MID_RESPONSE_RECEIVED)) { |
1071 | || (midQ->midState != MID_RESPONSE_RECEIVED)) { | ||
1072 | rc = -EIO; | 1071 | rc = -EIO; |
1073 | cERROR(1, ("Bad MID state?")); | 1072 | cERROR(1, ("Bad MID state?")); |
1074 | goto out; | 1073 | goto out; |