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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 7 Jan 2011 22:43:13 +0000 (14:43 -0800)
commitda53fa015ad6242ca95ee48c62feaf9cf1084bd2
tree6283cd7286e687810185bcc3e769094955cdf66c
parent32aba3cf35c2fd0dde82d1acac9c76424f576c67
bfa: fix system crash when reading sysfs fc_host statistics

commit 7873ca4e4401f0ecd8868bf1543113467e6bae61 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/scsi/bfa/bfa_core.c