Skip to content

Commit

Permalink
[SCSI] fnic: lport stats need to be initialized in fnic_probe()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Venkata Siva Vijayendra Bhamidipati authored and James Bottomley committed Feb 17, 2010
1 parent aaa5e56 commit c693a71
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/scsi/fnic/fnic_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -700,6 +700,8 @@ static int __devinit fnic_probe(struct pci_dev *pdev,
goto err_out_remove_scsi_host;
}

fc_lport_init_stats(lp);

fc_lport_config(lp);

if (fc_set_mfs(lp, fnic->config.maxdatafieldsize +
Expand Down

0 comments on commit c693a71

Please sign in to comment.