diff --git a/fs/cifs/transport.c b/fs/cifs/transport.c index 000ac509c98a32e884322149e88b53e4bdb2a4c1..e286db9f5ee2c66d34b0c3c4deedf851b18b7687 100644 --- a/fs/cifs/transport.c +++ b/fs/cifs/transport.c @@ -265,6 +265,7 @@ smb_send2(struct socket *ssocket, struct kvec *iov, int n_vec, cFYI(1, ("Sending smb: total_len %d", total_len)); dump_smb(smb_buffer, len); + i = 0; while (total_len) { rc = kernel_sendmsg(ssocket, &smb_msg, &iov[first_vec], n_vec - first_vec, total_len);