Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aa874f07 authored by Jayamohan Kallickal's avatar Jayamohan Kallickal Committed by James Bottomley
Browse files

[SCSI] 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

Signed-off-by: default avatarJayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent da7408c8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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-"