linux/drivers/scsi/fnic
Artem Chernyshev 76fed8a4c5 scsi: fnic: Return error if vmalloc() failed
[ Upstream commit f5f27a332a ]

In fnic_init_module() exists redundant check for return value from
fnic_debugfs_init(), because at moment it only can return zero. It make
sense to process theoretical vmalloc() failure.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 9730ddfb12 ("scsi: fnic: remove redundant assignment of variable rc")
Signed-off-by: Artem Chernyshev <artem.chernyshev@red-soft.ru>
Link: https://lore.kernel.org/r/20231128111008.2280507-1-artem.chernyshev@red-soft.ru
Reviewed-by: Karan Tilak Kumar <kartilak@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-01-25 15:35:22 -08:00
..
cq_desc.h
cq_enet_desc.h
cq_exch_desc.h
fcpio.h
fnic_attrs.c
fnic_debugfs.c scsi: fnic: Return error if vmalloc() failed 2024-01-25 15:35:22 -08:00
fnic_fcs.c
fnic_fip.h
fnic_io.h scsi: fnic: Fix sg_reset success path 2023-09-27 11:03:59 -04:00
fnic_isr.c
fnic_main.c scsi: fnic: Fix sg_reset success path 2023-09-27 11:03:59 -04:00
fnic_res.c
fnic_res.h
fnic_scsi.c scsi: fnic: Fix sg_reset success path 2023-09-27 11:03:59 -04:00
fnic_stats.h
fnic_trace.c scsi: fnic: Use vmalloc_array() and vcalloc() 2023-07-05 21:34:30 -04:00
fnic_trace.h
fnic.h scsi: fnic: Fix sg_reset success path 2023-09-27 11:03:59 -04:00
Makefile
rq_enet_desc.h
vnic_cq_copy.h
vnic_cq.c
vnic_cq.h
vnic_dev.c
vnic_dev.h
vnic_devcmd.h
vnic_intr.c
vnic_intr.h
vnic_nic.h
vnic_resource.h
vnic_rq.c
vnic_rq.h
vnic_scsi.h
vnic_stats.h
vnic_wq_copy.c
vnic_wq_copy.h
vnic_wq.c
vnic_wq.h
wq_enet_desc.h