]> git.openfabrics.org - ~shefty/rdma-dev.git/blobdiff - fs/cifs/connect.c
cifs: don't return error from standard_receive3 after marking response malformed
[~shefty/rdma-dev.git] / fs / cifs / connect.c
index 940189bd6490f2bea86b138c8a69d3e3d9d27e20..602f77c304c90fc402c9ec221eff2b78be818081 100644 (file)
@@ -773,10 +773,11 @@ standard_receive3(struct TCP_Server_Info *server, struct mid_q_entry *mid)
                cifs_dump_mem("Bad SMB: ", buf,
                        min_t(unsigned int, server->total_read, 48));
 
-       if (mid)
-               handle_mid(mid, server, smb_buffer, length);
+       if (!mid)
+               return length;
 
-       return length;
+       handle_mid(mid, server, smb_buffer, length);
+       return 0;
 }
 
 static int