mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-18 03:01:26 +00:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user