[SCSI] lpfc: avoid double-free during PCI error failure
authorLinas Vepstas <linas@austin.ibm.com>
Thu, 8 Mar 2007 22:19:11 +0000 (16:19 -0600)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sun, 11 Mar 2007 15:42:17 +0000 (10:42 -0500)
commit5daa49ef05c44ce94bed0bab0f9ba4a9e952863b
tree7af047846343ffee0d047a60c9ad81e2d5de8e76
parentbe521466feb3bb1cd89de82a2b1d080e9ebd3cb6
[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 <linas@austin.ibm.com>
Acked-by: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/lpfc/lpfc_init.c