From 82e07ddb7354b7b35de42dfb8b77ef49f8dd7540 Mon Sep 17 00:00:00 2001 From: Vladislav Bolkhovitin Date: Fri, 12 Feb 2010 13:12:58 +0000 Subject: [PATCH] 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. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reported and tested by Ladislav PaĊĦek git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@1500 d57e44dd-8a1f-0410-8b47-8ef2f437770f --- iscsi-scst/kernel/iscsi.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iscsi-scst/kernel/iscsi.c b/iscsi-scst/kernel/iscsi.c index 33d8a0f70..7fda14b4c 100644 --- a/iscsi-scst/kernel/iscsi.c +++ b/iscsi-scst/kernel/iscsi.c @@ -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)