From: James.Smart@Emulex.Com Date: Wed, 10 Aug 2005 19:03:01 +0000 (-0400) Subject: [SCSI] lpfc driver 8.0.30 : fix get_stats panic X-Git-Tag: v2.6.14-rc1~522^2~12^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f888ba3ce77c66bece3d804caf7d559838209a4a;p=pandora-kernel.git [SCSI] lpfc driver 8.0.30 : fix get_stats panic Fix panic in lpfc_get_stats() Symptoms: Panic on sysfs stats access Cause: In lpfc_get_stats() we are writing to memory that we do not own. Fix: Fix our stats structure allocation. Embed phba->link_stats in struct lpfc_hba and stop treating it like rogue structure. Note: Embedding midlayer/transport structure in our structure caused need for more files to include midlayer/transport headers. Signed-off-by: James Smart Signed-off-by: James Bottomley --- Reading git-diff-tree failed