[SCSI] bfa: fix system crash when reading sysfs fc_host statistics
authorKrishna Gudipati <kgudipat@brocade.com>
Fri, 21 May 2010 21:39:45 +0000 (14:39 -0700)
committerJames Bottomley <James.Bottomley@suse.de>
Tue, 25 May 2010 15:05:40 +0000 (10:05 -0500)
commit7873ca4e4401f0ecd8868bf1543113467e6bae61
tree48b65eae8642838bde5bb2a7c7b14cfb8669eb3f
parent8c38a2951026e6b428d3ce6e518d123c35becd18
[SCSI] bfa: fix system crash when reading sysfs fc_host statistics

The port data structure related to fc_host statistics collection is
not initialized. This causes system crash when reading the fc_host
statistics. The fix is to initialize port structure during driver
attach.

Signed-off-by: Krishna Gudipati <kgudipat@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/bfa/bfa_core.c