Commit c693a71d authored by Venkata Siva Vijayendra Bhamidipati's avatar Venkata Siva Vijayendra Bhamidipati Committed by James Bottomley

[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: default avatarJoe Eykholt <jeykholt@cisco.com>
Signed-off-by: default avatarVenkata Siva Vijayendra Bhamidipati <vbhamidi@cisco.com>
Signed-off-by: default avatarRobert Love <robert.w.love@intel.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent aaa5e569
...@@ -700,6 +700,8 @@ static int __devinit fnic_probe(struct pci_dev *pdev, ...@@ -700,6 +700,8 @@ static int __devinit fnic_probe(struct pci_dev *pdev,
goto err_out_remove_scsi_host; goto err_out_remove_scsi_host;
} }
fc_lport_init_stats(lp);
fc_lport_config(lp); fc_lport_config(lp);
if (fc_set_mfs(lp, fnic->config.maxdatafieldsize + if (fc_set_mfs(lp, fnic->config.maxdatafieldsize +
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment