mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
scsi: lpfc: Fix error code if kcalloc() fails
This should return -ENOMEM if kcalloc() fails, but it accidentally
returns success instead.
Fixes: 6a828b0f61 ("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>
This commit is contained in:
parent
2174b18513
commit
fad28e3d9a
1 changed files with 1 additions and 0 deletions
|
|
@ -9638,6 +9638,7 @@ lpfc_sli4_queue_setup(struct lpfc_hba *phba)
|
|||
lpfc_printf_log(phba, KERN_ERR, LOG_INIT,
|
||||
"0549 Failed setup of CQ Lookup table: "
|
||||
"size 0x%x\n", phba->sli4_hba.cq_max);
|
||||
rc = -ENOMEM;
|
||||
goto out_destroy;
|
||||
}
|
||||
lpfc_setup_cq_lookup(phba);
|
||||
|
|
|
|||
Loading…
Reference in a new issue