linux/drivers/soc/fsl
Jiasheng Jiang fbb810825a soc: fsl: qe: Check of ioremap return value
[ Upstream commit a222fd8541 ]

As the possible failure of the ioremap(), the par_io could be NULL.
Therefore it should be better to check it and return error in order to
guarantee the success of the initiation.
But, I also notice that all the caller like mpc85xx_qe_par_io_init() in
`arch/powerpc/platforms/85xx/common.c` don't check the return value of
the par_io_init().
Actually, par_io_init() needs to check to handle the potential error.
I will submit another patch to fix that.
Anyway, par_io_init() itsely should be fixed.

Fixes: 7aa1aa6ece ("QE: Move QE from arch/powerpc to drivers/soc")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Signed-off-by: Li Yang <leoyang.li@nxp.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-03-08 19:09:37 +01:00
..
dpio soc: fsl: dpio: use the combined functions to protect critical zone 2021-11-18 14:03:48 +01:00
qbman soc/fsl: qbman: fix conflicting alignment attributes 2021-04-14 08:42:09 +02:00
qe soc: fsl: qe: Check of ioremap return value 2022-03-08 19:09:37 +01:00
dpaa2-console.c soc: fsl: dpaa2-console: free buffer before returning from dpaa2_console_read 2021-11-18 14:04:24 +01:00
guts.c soc: fsl: guts: Add a missing memory allocation failure check 2022-03-08 19:09:37 +01:00
Kconfig soc: fsl: add RCPM driver 2019-11-12 15:26:05 -06:00
Makefile soc: fsl: add RCPM driver 2019-11-12 15:26:05 -06:00
rcpm.c soc: fsl: add RCPM driver 2019-11-12 15:26:05 -06:00