WSL2-Linux-Kernel/drivers/scsi/aic94xx
Jiasheng Jiang f6e9b77257 scsi: aic94xx: Add missing check for dma_map_single()
[ Upstream commit 32fe45274e ]

Add check for dma_map_single() and return error if it fails in order to
avoid invalid DMA address.

Fixes: 2908d778ab ("[SCSI] aic94xx: new driver")
Link: https://lore.kernel.org/r/20230128110832.6792-1-jiasheng@iscas.ac.cn
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Jason Yan <yanaijie@huawei.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-03-10 09:39:28 +01:00
..
Kconfig
Makefile
aic94xx.h
aic94xx_dev.c
aic94xx_dump.c
aic94xx_dump.h
aic94xx_hwi.c
aic94xx_hwi.h
aic94xx_init.c
aic94xx_reg.c
aic94xx_reg.h
aic94xx_reg_def.h
aic94xx_sas.h
aic94xx_scb.c
aic94xx_sds.c
aic94xx_sds.h
aic94xx_seq.c
aic94xx_seq.h
aic94xx_task.c
aic94xx_tmf.c