]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: nsp_cs: Check of ioremap return value
authorJiasheng Jiang <jiasheng@iscas.ac.cn>
Thu, 30 Dec 2021 02:11:37 +0000 (10:11 +0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Mon, 10 Jan 2022 16:03:42 +0000 (11:03 -0500)
commit4db2d54d0a558c558f34712b460ea8cd3e6fd8ec
tree338a2378e590bd245b87d951fe43ae51a2ad6835
parent93927f4ba5fe03607b301f7c086066e7c6a5f0be
scsi: nsp_cs: Check of ioremap return value

Since it is possible for ioremap() to fail, 'data->MmioAddress' could be
NULL. Skip entry if ioremap() fails.

Link: https://lore.kernel.org/r/20211230021137.1823352-1-jiasheng@iscas.ac.cn
Fixes: 2b0e70a1c423 ("pcmcia: use pcmcia_loop_config in scsi pcmcia drivers")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/pcmcia/nsp_cs.c