From: Linas Vepstas Date: Thu, 8 Mar 2007 22:19:11 +0000 (-0600) Subject: [SCSI] lpfc: avoid double-free during PCI error failure X-Git-Tag: v2.6.21-rc6~84^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5daa49ef05c44ce94bed0bab0f9ba4a9e952863b;p=pandora-kernel.git [SCSI] lpfc: avoid double-free during PCI error failure If a PCI error is detected that cannot be recovered from, there will be a double call of lpfc_pci_remove_one(), with the second call resulting in a null-pointer dereference. The first call occurs in lpfc_io_error_detected(), and the second call during pci device remove. This patch eliminates the first call; its un-needed. Signed-off-by: Linas Vepstas Acked-by: James Smart Signed-off-by: James Bottomley --- Reading git-diff-tree failed