Fix test to actually do what the comment says and send too low CmdSN.

This commit is contained in:
Edward Tomasz Napierala
2013-09-23 13:14:43 +02:00
parent f9d4c742a2
commit ae298ec940

View File

@@ -31,7 +31,7 @@ static int my_iscsi_queue_pdu(struct iscsi_context *iscsi, struct iscsi_pdu *pdu
switch (change_cmdsn) {
case 1:
/* change the cmdsn so it becomes too big */
scsi_set_uint32(&pdu->outdata.data[24], iscsi->expcmdsn + 1);
scsi_set_uint32(&pdu->outdata.data[24], iscsi->expcmdsn - 1);
/* fudge the cmdsn value back to where it should be if this
* pdu is ignored.
*/