linux-stable/drivers/soc/fsl
Jiasheng Jiang 4ed52fbeb9 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:12:49 +01:00
..
dpio soc: fsl: dpio: use the combined functions to protect critical zone 2021-11-18 19:16:01 +01:00
qbman IOMMU Updates for Linux v5.13 2021-05-01 09:33:00 -07:00
qe soc: fsl: qe: Check of ioremap return value 2022-03-08 19:12:49 +01:00
dpaa2-console.c soc: fsl: dpaa2-console: free buffer before returning from dpaa2_console_read 2021-11-18 19:17:02 +01:00
guts.c soc: fsl: guts: Add a missing memory allocation failure check 2022-03-08 19:12:49 +01:00
Kconfig
Makefile
rcpm.c soc: fsl: enable acpi support in RCPM driver 2021-04-08 16:34:15 -05:00