[SCSI] lpfc 8.3.9: Fix locking and memory issues
authorJames Smart <james.smart@emulex.com>
Fri, 12 Feb 2010 19:43:01 +0000 (14:43 -0500)
committerJames Bottomley <James.Bottomley@suse.de>
Wed, 17 Feb 2010 23:41:19 +0000 (17:41 -0600)
commit72100cc43262fa39821b3debc04be1a7a17b3428
tree2f313571ee9c9cf4d4a16f2a6e69f82c569b9757
parent84d1b006978e78e27f22beb5cfbc4d349bac6df7
[SCSI] lpfc 8.3.9: Fix locking and memory issues

- Use the hbalock when changing the fc_flag.
- Use the host_lock when changeing the sli_flag.
- Prevent NULL pointer dereference after dma_alloc_coherent failure.

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/lpfc/lpfc_hbadisc.c
drivers/scsi/lpfc/lpfc_init.c
drivers/scsi/lpfc/lpfc_mbox.c
drivers/scsi/lpfc/lpfc_vport.c