[SCSI] lpfc 8.3.3 : Fix a couple of spin_lock and memory issues and a crash
authorJames Smart <James.Smart@Emulex.Com>
Wed, 10 Jun 2009 21:23:06 +0000 (17:23 -0400)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Mon, 15 Jun 2009 15:09:33 +0000 (10:09 -0500)
commitd11e31ddb9718755dc96e1c018843ae6f5bb085e
treec6314c3e2b528077c8ff7c4ade53aa4ab74407ba
parent0c2875893ef27b93d5d3221f8f98ae944d6be5fa
[SCSI] lpfc 8.3.3 : Fix a couple of spin_lock and memory issues and a crash

Contains the following changes:
- Fixed error paths retaking a spin lock which they already hold
- Added code to free memory in a couple of error paths
- Added code to free RPI bit map while unloading driver
- Added code to write zero to memory object allocated through dma_alloc_coherent
- Fixed crash/hang with target or LUN resets

Signed-off-by: James Smart <James.Smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_mbox.c
drivers/scsi/lpfc/lpfc_sli.c