]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: Fix error code if kcalloc() fails
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 11 Feb 2019 18:43:00 +0000 (21:43 +0300)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 13 Feb 2019 03:15:54 +0000 (22:15 -0500)
commit3137888e59c03830ea220a7b5b4bcfa684a28f04
tree576aad580a78bf4e50ec59c493bdfea9e7576905
parent768870302d33fd1756312b92d564d74afe277695
scsi: lpfc: Fix error code if kcalloc() fails

This should return -ENOMEM if kcalloc() fails, but it accidentally
returns success instead.

Fixes: c26fef1d13ab ("scsi: lpfc: Support non-uniform allocation of MSIX vectors to hardware queues")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Ewan D. Milne <emilne@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_init.c