From: Jayamohan Kallickal Date: Mon, 4 Jan 2010 23:38:39 +0000 (+0530) Subject: [SCSI] be2iscsi: Use of opcode in beiscsi_alloc_pdu X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d7aea67b8a7665fe5e53cdf59ba76c9b8d67b751;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git [SCSI] be2iscsi: Use of opcode in beiscsi_alloc_pdu This patch enables use of opcode that is passed in Signed-off-by: Jayamohan Kallickal Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c index 18471ede7f80..0fae26468a09 100644 --- a/drivers/scsi/be2iscsi/be_main.c +++ b/drivers/scsi/be2iscsi/be_main.c @@ -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 *)