]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: qedi: Fix error return code of qedi_alloc_global_queues()
authorJia-Ju Bai <baijiaju1990@gmail.com>
Mon, 8 Mar 2021 03:30:24 +0000 (19:30 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Thu, 25 Mar 2021 02:04:21 +0000 (22:04 -0400)
commit56478223b68f8fe1602ec17a8a94044145bbb17f
tree5f2239a0311bb0683253b0137c713881543be156
parent134da76f1703e00ffd447c3997b9d8935f77cd80
scsi: qedi: Fix error return code of qedi_alloc_global_queues()

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: bf98b78f3ff3 ("scsi: qedi: Add QLogic FastLinQ offload iSCSI driver framework.")
Reported-by: TOTE Robot <oslab@tsinghua.edu.cn>
Acked-by: Manish Rangankar <mrangankar@marvell.com>
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/qedi/qedi_main.c