mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
Commented out required by iSCSI RFC, but not needed for processing, check of LUN field in Data-Out PDU, because some initiators (Windows, at least) don't care to correctly set it.
Reported and tested by Ladislav Pašek <pasek@valbek.cz> git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1500 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -1956,6 +1956,7 @@ static int data_out_start(struct iscsi_cmnd *cmnd)
|
||||
}
|
||||
|
||||
/* Crazy iSCSI spec requires us to make this unneeded check */
|
||||
#if 0 /* ...but some initiators (Windows) don't care to correctly set it */
|
||||
orig_req_hdr = &orig_req->pdu.bhs;
|
||||
if (unlikely(orig_req_hdr->lun != req_hdr->lun)) {
|
||||
PRINT_ERROR("Wrong LUN (%lld) in Data-Out PDU (expected %lld), "
|
||||
@@ -1964,6 +1965,7 @@ static int data_out_start(struct iscsi_cmnd *cmnd)
|
||||
create_reject_rsp(orig_req, ISCSI_REASON_PROTOCOL_ERROR, false);
|
||||
goto go;
|
||||
}
|
||||
#endif
|
||||
|
||||
go:
|
||||
if (req_hdr->flags & ISCSI_FLG_FINAL)
|
||||
|
||||
Reference in New Issue
Block a user