]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit - drivers/scsi/libiscsi.c
[SCSI] libiscsi: fix login/text checks in pdu injection code
authorMike Christie <michaelc@cs.wisc.edu>
Wed, 11 Nov 2009 22:34:31 +0000 (16:34 -0600)
committerJames Bottomley <James.Bottomley@suse.de>
Fri, 4 Dec 2009 18:01:35 +0000 (12:01 -0600)
commit4f704dc03297406ea5d53b85c4666c60f69000bf
treeee226b0502ab1b5ad5473615aab004dd2ba0a851
parent24246de77503978cfcd7e76f06404e60e399992f
[SCSI] libiscsi: fix login/text checks in pdu injection code

For some reason we used to check for the the immediate bit
set and the opcocde in many places instead of just masking
the opcode. In the passthrough code this is a problem
because userspace may or may not have set the immediate bit
and it does not have to. This fixes up the opcode checks
in the passthrough code, so we mask off the opcode then
check against the iscsi proto definition like is done in
other places.

Signed-off-by: Mike Christie <michaelc@cs.wisc.edu>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/libiscsi.c