android_kernel_xiaomi_sm8350/drivers/scsi/aacraid
Christophe JAILLET b6cee18cba scsi: aacraid: Fix error handling paths in aac_probe_one()
[ Upstream commit f7854c382240c1686900b2f098b36430c6f5047e ]

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:17:56 +02:00
..
aachba.c scsi: aacraid: fix illegal IO beyond last LBA 2020-10-01 13:17:12 +02:00
aacraid.h
commctrl.c
comminit.c
commsup.c scsi: aacraid: Disabling TM path and only processing IOP reset 2020-10-01 13:17:41 +02:00
dpcsup.c
linit.c scsi: aacraid: Fix error handling paths in aac_probe_one() 2020-10-01 13:17:56 +02:00
Makefile
nark.c
rkt.c
rx.c
sa.c
src.c
TODO