diff options
-rw-r--r-- | drivers/scsi/iscsi_tcp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c index 810e5e59658f..584e51024fd6 100644 --- a/drivers/scsi/iscsi_tcp.c +++ b/drivers/scsi/iscsi_tcp.c | |||
@@ -1385,7 +1385,7 @@ iscsi_sendpage(struct iscsi_conn *conn, struct iscsi_buf *buf, | |||
1385 | BUG_ON(buf->sent + size > buf->sg.length); | 1385 | BUG_ON(buf->sent + size > buf->sg.length); |
1386 | if (size > *count) | 1386 | if (size > *count) |
1387 | size = *count; | 1387 | size = *count; |
1388 | if (buf->sent + size != buf->sg.length) | 1388 | if (buf->sent + size != buf->sg.length || *count != size) |
1389 | flags |= MSG_MORE; | 1389 | flags |= MSG_MORE; |
1390 | 1390 | ||
1391 | res = iscsi_send(sk, buf, size, flags); | 1391 | res = iscsi_send(sk, buf, size, flags); |