Skip to contentSkip to conversation

be2iscsi: Fixing initialization of can_queue

PATCH In review Jayamohan Kallickal 1 participant 1 message Dec 4, 2009

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 14/15 be2iscsi: Fixing initialization of can_queue

This patch fixes can_queue being uninitiallized since it
was done before beiscsi_get_params was called.

Thanks to Mike Christie for identifying this

---
 drivers/scsi/be2iscsi/be_main.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/scsi/be2iscsi/be_main.c +1 -1
index a6a2c64..b1c8975 100644
@@ -3825,8 +3825,8 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev,
 		goto free_port;
 	}
 	phba->shost->max_id = phba->fw_config.iscsi_cid_count;
-	phba->shost->can_queue = phba->params.ios_per_ctrl;
 	beiscsi_get_params(phba);
+	phba->shost->can_queue = phba->params.ios_per_ctrl;
 	ret = beiscsi_init_port(phba);
 	if (ret < 0) {
 		shost_printk(KERN_ERR, phba->shost, "beiscsi_dev_probe-"
Signature · 1 line
1.6.4