diff options
| author | Wang Jun <1742789905@qq.com> | 2026-03-27 03:12:25 +0300 |
|---|---|---|
| committer | Christophe Leroy (CS GROUP) <chleroy@kernel.org> | 2026-04-04 19:52:09 +0300 |
| commit | a0fe29d20e7822182e12324905af5115c1b3aed3 (patch) | |
| tree | 05cf55c88b55aeb1328f26f3b629bc8d024f8bf6 /include/linux/debugobjects.h | |
| parent | 7b9233b25131fa54ef9c64ebbe95aef6ad3de47c (diff) | |
| download | linux-a0fe29d20e7822182e12324905af5115c1b3aed3.tar.xz | |
soc: fsl: qe: panic on ioremap() failure in qe_reset()
When ioremap() fails in qe_reset(), the global pointer qe_immr remains
NULL, leading to a subsequent NULL pointer dereference when the pointer
is accessed. Since this happens early in the boot process, a failure to
map a few bytes of I/O memory indicates a fatal error from which the
system cannot recover.
Follow the same pattern as qe_sdma_init() and panic immediately when
ioremap() fails. This avoids a silent NULL pointer dereference later
and makes the error explicit.
Fixes: 986585385131 ("[POWERPC] Add QUICC Engine (QE) infrastructure")
Cc: stable@vger.kernel.org
Signed-off-by: Wang Jun <1742789905@qq.com>
Link: https://lore.kernel.org/r/tencent_FED49CF5331CC0C7910618883332A08E2606@qq.com
[chleroy: Rearranged change to reduce churn]
Signed-off-by: Christophe Leroy (CS GROUP) <chleroy@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
