aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/be2iscsi/be_main.c
diff options
context:
space:
mode:
authorJayamohan Kallickal <jayamohank@serverengines.com>2010-01-04 18:42:03 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-01-18 11:48:24 -0500
commitaa874f0738ecac7e5ac13b4d808a1026dcb5367d (patch)
tree99f7a4d189c7572e0dcf3f508992c470844fb69e /drivers/scsi/be2iscsi/be_main.c
parentda7408c800e3ae293275f52497d0ef7a9b09c9e4 (diff)
[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: Jayamohan Kallickal <jayamohank@serverengines.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/be2iscsi/be_main.c')
-rw-r--r--drivers/scsi/be2iscsi/be_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/be2iscsi/be_main.c b/drivers/scsi/be2iscsi/be_main.c
index a6a2c6469677..b1c897528300 100644
--- a/drivers/scsi/be2iscsi/be_main.c
+++ b/drivers/scsi/be2iscsi/be_main.c
@@ -3825,8 +3825,8 @@ static int __devinit beiscsi_dev_probe(struct pci_dev *pcidev,
3825 goto free_port; 3825 goto free_port;
3826 } 3826 }
3827 phba->shost->max_id = phba->fw_config.iscsi_cid_count; 3827 phba->shost->max_id = phba->fw_config.iscsi_cid_count;
3828 phba->shost->can_queue = phba->params.ios_per_ctrl;
3829 beiscsi_get_params(phba); 3828 beiscsi_get_params(phba);
3829 phba->shost->can_queue = phba->params.ios_per_ctrl;
3830 ret = beiscsi_init_port(phba); 3830 ret = beiscsi_init_port(phba);
3831 if (ret < 0) { 3831 if (ret < 0) {
3832 shost_printk(KERN_ERR, phba->shost, "beiscsi_dev_probe-" 3832 shost_printk(KERN_ERR, phba->shost, "beiscsi_dev_probe-"