]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - fs/cifs/transport.c
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net-2.6
[linux-2.6-omap-h63xx.git] / fs / cifs / transport.c
index ba4d66644ebf165baf0008108183f48bdb54d462..ff8243a8fe3e955757cf087d53c6dbd5bc6befc1 100644 (file)
@@ -290,8 +290,11 @@ smb_send2(struct TCP_Server_Info *server, struct kvec *iov, int n_vec,
                if (rc < 0)
                        break;
 
-               if (rc >= total_len) {
-                       WARN_ON(rc > total_len);
+               if (rc == total_len) {
+                       total_len = 0;
+                       break;
+               } else if (rc > total_len) {
+                       cERROR(1, ("sent %d requested %d", rc, total_len));
                        break;
                }
                if (rc == 0) {