[SCSI] scsi: lpfc error path fix
commita96e0c7798057dd8055d0263c076fed975c10237
authorMariusz Kozlowski <m.kozlowski@tuxland.pl>
Tue, 2 Jan 2007 00:07:32 +0000 (2 01:07 +0100)
committerJames Bottomley <jejb@mulgrave.il.steeleye.com>
Sat, 6 Jan 2007 15:05:18 +0000 (6 09:05 -0600)
tree29b0e003f6ef4347ea68dd4ec3a3507216ca8bd2
parent8e9d58e723e29e8b04c09bd9badd81c1d8232f5f
[SCSI] scsi: lpfc error path fix

Add kmalloc failure check and fix the loop on error path. Without the
patch pool element at index [0] will not be freed.

Signed-off-by: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Acked-by: James Smart <James.Smart@Emulex.Com>
Signed-off-by: James Bottomley <James.Bottomley@SteelEye.com>
drivers/scsi/lpfc/lpfc_mem.c