diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2021-12-30 09:45:43 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-03-08 19:04:09 +0100 |
commit | b857bcb5e5ad200b92cea8704e1a8c8f80a34025 (patch) | |
tree | e72b5eb841703f063e538d2deb8923c2f232d0a7 /drivers/scsi/qedf/qedf_dbg.c | |
parent | 786576c03b313a9ff6585458aa0dfd039d897f51 (diff) | |
download | linux-stable-b857bcb5e5ad200b92cea8704e1a8c8f80a34025.tar.gz linux-stable-b857bcb5e5ad200b92cea8704e1a8c8f80a34025.tar.bz2 linux-stable-b857bcb5e5ad200b92cea8704e1a8c8f80a34025.zip |
soc: fsl: qe: Check of ioremap return value
[ Upstream commit a222fd8541394b36b13c89d1698d9530afd59a9c ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/scsi/qedf/qedf_dbg.c')
0 files changed, 0 insertions, 0 deletions