summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorMike Christie <michaelc@cs.wisc.edu>2005-11-29 23:12:46 -0600
committerJames Bottomley <jejb@mulgrave.(none)>2005-12-13 18:11:53 -0700
commit0d2f16559a9015c4daa8babfc443bf2b8740fbd9 (patch)
tree20aea5901dd616566d54fbd1d7c40a9e8193a555 /drivers/scsi
parentad94c9340a76db187166f2342ba0ff568dc7801f (diff)
downloadop-kernel-dev-0d2f16559a9015c4daa8babfc443bf2b8740fbd9.zip
op-kernel-dev-0d2f16559a9015c4daa8babfc443bf2b8740fbd9.tar.gz
[SCSI] iscsi: opcode check fix
Must check only valid opcode bits. Signed-off-by: Mike Christie <michaelc@cs.wisc.edu> Signed-off-by: Alex Aizman <itn780@yahoo.com> Signed-off-by: Dmitry Yusupov <dmitry_yus@yahoo.com> Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/iscsi_tcp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/iscsi_tcp.c b/drivers/scsi/iscsi_tcp.c
index 4fea3e4..0769e94 100644
--- a/drivers/scsi/iscsi_tcp.c
+++ b/drivers/scsi/iscsi_tcp.c
@@ -584,7 +584,7 @@ iscsi_hdr_recv(struct iscsi_conn *conn)
}
/* save opcode for later */
- conn->in.opcode = hdr->opcode;
+ conn->in.opcode = hdr->opcode & ISCSI_OPCODE_MASK;
/* verify itt (itt encoding: age+cid+itt) */
if (hdr->itt != cpu_to_be32(ISCSI_RESERVED_TAG)) {
OpenPOWER on IntegriCloud