When sending unsolicited data out, beginning of buffer to send is pdu->out_len, not pdu->offset.

We might have already sent pdu->out_len amount of data as immediate data.
This commit is contained in:
Ronnie Sahlberg
2012-12-02 10:05:32 -08:00
parent a3ce92c93c
commit 338a8e26f5

View File

@@ -276,7 +276,7 @@ iscsi_scsi_command_async(struct iscsi_context *iscsi, int lun,
len = iscsi->first_burst_length - pdu->out_len;
}
iscsi_send_data_out(iscsi, pdu, 0xffffffff,
pdu->out_offset, len);
pdu->out_len, len);
}
/* remember cmdsn and itt so we can use task management */