]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Mon, 21 Mar 2011 19:44:29 +0000 (12:44 -0700)
commit7cb215ebdfc6c255129f5baff525a2abd7237f0e
treeadd75922d1485346369fa17dd7be917a58b8fbaa
parent15bd914890cca7434047276c77e4962d93fb3a62
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