On Sun, 7 Mar 2021 19:30:24 -0800, Jia-Ju Bai wrote:
> When kzalloc() returns NULL to qedi->global_queues[i], no error return
> code of qedi_alloc_global_queues() is assigned.
> To fix this bug, status is assigned with -ENOMEM in this case.
Applied to 5.12/scsi-fixes, thanks!
[1/1] scsi: qedi:
> ker...@vger.kernel.org; Jia-Ju Bai
> Subject: [EXT] [PATCH] scsi: qedi: fix error return code of
> qedi_alloc_global_queues()
>
> External Email
>
> --
> When kzalloc() returns NULL
When kzalloc() returns NULL to qedi->global_queues[i], no error return
code of qedi_alloc_global_queues() is assigned.
To fix this bug, status is assigned with -ENOMEM in this case.
Fixes: ace7f46ba5fd ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver
framework.")
Reported-by: TOTE Robot
3 matches
Mail list logo