diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2021-12-30 04:45:43 +0300 |
---|---|---|
committer | Li Yang <leoyang.li@nxp.com> | 2022-02-19 02:11:23 +0300 |
commit | a222fd8541394b36b13c89d1698d9530afd59a9c (patch) | |
tree | 93346033ec7ea2f4ea20dd40fd02b051cb0d34f5 /drivers/net/Space.c | |
parent | 6385960501d9e0248a8745714674e86bd077e198 (diff) | |
download | linux-a222fd8541394b36b13c89d1698d9530afd59a9c.tar.xz |
soc: fsl: qe: Check of ioremap return value
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: 7aa1aa6ecec2 ("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>
Diffstat (limited to 'drivers/net/Space.c')
0 files changed, 0 insertions, 0 deletions