scsi: qedi: Fix error return code of qedi_alloc_global_queues()
stable inclusion from stable-5.10.27 commit 6b977fea78de067da698088e167714516a4a31b1 bugzilla: 51493 -------------------------------- [ Upstream commit f6995383 ] 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. Link: https://lore.kernel.org/r/20210308033024.27147-1-baijiaju1990@gmail.com Fixes: ace7f46b ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.") Reported-by: NTOTE Robot <oslab@tsinghua.edu.cn> Acked-by: NManish Rangankar <mrangankar@marvell.com> Signed-off-by: NJia-Ju Bai <baijiaju1990@gmail.com> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NChen Jun <chenjun102@huawei.com> Acked-by: N Weilong Chen <chenweilong@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录