[SCSI] be2iscsi: Fixing initialization of can_queue
authorJayamohan Kallickal <jayamohank@serverengines.com>
Mon, 4 Jan 2010 23:42:03 +0000 (05:12 +0530)
committerJames Bottomley <James.Bottomley@suse.de>
Mon, 18 Jan 2010 16:48:24 +0000 (10:48 -0600)
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: Jayamohan Kallickal <jayamohank@serverengines.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/be2iscsi/be_main.c

index a6a2c6469677a41733e615f4da45eee8a574b0d7..b1c8975283007ec2f6ce15f2b7d8d792e234b8b2 100644 (file)
@@ -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-"