]> asedeno.scripts.mit.edu Git - linux.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)
commitfad28e3d9aa14522e33694b63ccccdf28e64a8e0
tree576aad580a78bf4e50ec59c493bdfea9e7576905
parent2174b18513d1064d2706cd6d6b878139eb050277
scsi: lpfc: Fix error code if kcalloc() fails

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

Fixes: 6a828b0f6192 ("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