android_kernel_xiaomi_sm8350/drivers/scsi/aic94xx
Jiasheng Jiang 904b717bb5 scsi: aic94xx: Add missing check for dma_map_single()
[ Upstream commit 32fe45274edb5926abc0fac7263d9f889d02d9cf ]

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-11 16:43:47 +01:00
..
aic94xx_dev.c
aic94xx_dump.c
aic94xx_dump.h
aic94xx_hwi.c
aic94xx_hwi.h
aic94xx_init.c
aic94xx_reg_def.h
aic94xx_reg.c
aic94xx_reg.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
aic94xx.h
Kconfig
Makefile