]> 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)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 17 Apr 2011 20:16:12 +0000 (16:16 -0400)
commit3ed5538cbde188c9f5592a1852b238b7670b0d08
tree56f87fc4280b93255318a94999ee20d97269d738
parente4f51ee7c6f1a43f91cec2b364eb6a30fa66fdb0
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: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/scsi/bfa/bfa_core.c