android_kernel_xiaomi_sm7250/drivers/scsi/aacraid
Christophe JAILLET 31662a5a20 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:14:42 +02:00
..
aachba.c scsi: aacraid: fix illegal IO beyond last LBA 2020-10-01 13:14:24 +02:00
aacraid.h scsi: aacraid: Insure we don't access PCIe space during AER/EEH 2019-05-04 09:20:20 +02:00
commctrl.c scsi: aacraid: remove bogus GFP_DMA32 specifies 2018-06-05 21:15:08 -04:00
comminit.c scsi: aacraid: Move code to wait for IO completion to shutdown func 2018-01-03 23:26:42 -05:00
commsup.c scsi: aacraid: Disabling TM path and only processing IOP reset 2020-10-01 13:14:37 +02:00
dpcsup.c scsi: aacraid: Spelling fix in comment 2018-08-08 21:32:43 -04:00
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 scsi: aacraid: stop using deprated get_seconds() 2018-06-26 11:57:01 -04:00
sa.c scsi: aacraid: stop using deprated get_seconds() 2018-06-26 11:57:01 -04:00
src.c scsi: aacraid: stop using deprated get_seconds() 2018-06-26 11:57:01 -04:00
TODO