aboutsummaryrefslogtreecommitdiffstats
path: root/fs/cifs/transport.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/cifs/transport.c')
-rw-r--r--fs/cifs/transport.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c
index d9b11690746d..d8865fbd876a 100644
--- a/fs/cifs/transport.c
+++ b/fs/cifs/transport.c
@@ -169,6 +169,8 @@ smb_send(struct socket *ssocket, struct smb_hdr *smb_buffer,
169 } 169 }
170 if (rc < 0) 170 if (rc < 0)
171 break; 171 break;
172 else
173 i = 0; /* reset i after each successful send */
172 iov.iov_base += rc; 174 iov.iov_base += rc;
173 iov.iov_len -= rc; 175 iov.iov_len -= rc;
174 len -= rc; 176 len -= rc;
@@ -263,6 +265,7 @@ smb_send2(struct socket *ssocket, struct kvec *iov, int n_vec,
263 } 265 }
264 } 266 }
265 } 267 }
268 i = 0; /* in case we get ENOSPC on the next send */
266 } 269 }
267 270
268 if (rc < 0) { 271 if (rc < 0) {