[SCSI] be2iscsi: Use of opcode in beiscsi_alloc_pdu
authorJayamohan Kallickal <jayamohank@serverengines.com>
Mon, 4 Jan 2010 23:38:39 +0000 (05:08 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 18 Jan 2010 16:48:21 +0000 (10:48 -0600)
This patch enables use of opcode that is passed in

Signed-off-by: Jayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/be2iscsi/be_main.c

index 18471ede7f805078f6a41488d6717b8e3750d3f0..0fae26468a09b2de052e6594433d013860a87982 100644 (file)
@@ -3339,7 +3339,7 @@ static int beiscsi_alloc_pdu(struct iscsi_task *task, uint8_t opcode)
                        goto free_hndls;
        } else {
                io_task->scsi_cmnd = NULL;
-               if ((task->hdr->opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGIN) {
+               if ((opcode & ISCSI_OPCODE_MASK) == ISCSI_OP_LOGIN) {
                        if (!beiscsi_conn->login_in_progress) {
                                spin_lock(&phba->mgmt_sgl_lock);
                                io_task->psgl_handle = (struct sgl_handle *)