linux/drivers/scsi/aacraid
Christophe JAILLET 31662a5a20 scsi: aacraid: Fix error handling paths in aac_probe_one()
[ Upstream commit f7854c3822 ]

If 'scsi_host_alloc()' or 'kcalloc()' fail, 'error' is known to be 0. Set
it explicitly to -ENOMEM before branching to the error handling path.

While at it, remove 2 useless assignments to 'error'. These values are
overwridden a few lines later.

Link: https://lore.kernel.org/r/20200412094039.8822-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-10-01 13:14:42 +02:00
..
aachba.c scsi: aacraid: fix illegal IO beyond last LBA 2020-10-01 13:14:24 +02:00
aacraid.h
commctrl.c
comminit.c
commsup.c scsi: aacraid: Disabling TM path and only processing IOP reset 2020-10-01 13:14:37 +02:00
dpcsup.c
linit.c scsi: aacraid: Fix error handling paths in aac_probe_one() 2020-10-01 13:14:42 +02:00
Makefile
nark.c
rkt.c
rx.c
sa.c
src.c
TODO