Fix for wrong endianness in scst_cmd_set_tgt_sn() call. Reported by Phil White <phil@scalecomputing.com>

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1785 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Vladislav Bolkhovitin
2010-06-25 10:23:20 +00:00
parent 9f5938cccc
commit 0d21ef4e23

View File

@@ -1962,8 +1962,8 @@ static int scsi_cmnd_start(struct iscsi_cmnd *req)
break;
}
/* cmd_sn is already in CPU format converted in check_cmd_sn() */
scst_cmd_set_tgt_sn(scst_cmd, req_hdr->cmd_sn);
/* check_cmd_sn() not called yet to convert cmd_sn in the CPU format */
scst_cmd_set_tgt_sn(scst_cmd, be32_to_cpu(req_hdr->cmd_sn));
ahdr = (struct iscsi_ahs_hdr *)req->pdu.ahs;
if (ahdr != NULL) {