mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
[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>
This commit is contained in:
parent
ad94c9340a
commit
0d2f16559a
1 changed files with 1 additions and 1 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue