[SCSI] lpfc: don't dereference NULL
authorJiri Slaby <jirislaby@gmail.com>
Mon, 13 Jul 2009 21:25:54 +0000 (23:25 +0200)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 22 Aug 2009 22:51:55 +0000 (17:51 -0500)
commite34ccdfe0e08a6acb8c5e649fef1e94e6cd637f9
tree037fc5ca114556aefc9734d6034ba3ad1dfbc162
parent0fd30f77693f4fef32d30d4801cd21dcd487c2f0
[SCSI] lpfc: don't dereference NULL

When kzalloc fails in lpfc_hba_alloc, don't dereference the NULL by
lpfc_printf_log. Use dev_err instead.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Acked-By: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/scsi/lpfc/lpfc_init.c