aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorVenkata Siva Vijayendra Bhamidipati <vbhamidi@cisco.com>2010-02-16 15:15:50 -0500
committerJames Bottomley <James.Bottomley@suse.de>2010-02-17 18:43:52 -0500
commitc693a71d2556128ef0b5b2440f0b579cd42c425d (patch)
treef168a845b4ef7d52adb147ac47f2eda1e420bee8 /drivers/scsi
parentaaa5e569ca96f5cf70202679a5864e60798b8ef6 (diff)
[SCSI] fnic: lport stats need to be initialized in fnic_probe()
Incorrect initialization of lport stats in fnic_probe() causes fnic to crash at bootup and a node hang if fip is enabled and all links are brought up after fnic is loaded. Signed-off-by: Joe Eykholt <jeykholt@cisco.com> Signed-off-by: Venkata Siva Vijayendra Bhamidipati <vbhamidi@cisco.com> Signed-off-by: Robert Love <robert.w.love@intel.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/fnic/fnic_main.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/scsi/fnic/fnic_main.c b/drivers/scsi/fnic/fnic_main.c
index 5bab7e0afe3d..507e26c1c29f 100644
--- a/drivers/scsi/fnic/fnic_main.c
+++ b/drivers/scsi/fnic/fnic_main.c
@@ -700,6 +700,8 @@ static int __devinit fnic_probe(struct pci_dev *pdev,
700 goto err_out_remove_scsi_host; 700 goto err_out_remove_scsi_host;
701 } 701 }
702 702
703 fc_lport_init_stats(lp);
704
703 fc_lport_config(lp); 705 fc_lport_config(lp);
704 706
705 if (fc_set_mfs(lp, fnic->config.maxdatafieldsize + 707 if (fc_set_mfs(lp, fnic->config.maxdatafieldsize +