Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 48d99fb3 authored by Greg Kurz's avatar Greg Kurz Committed by Vegard Nossum
Browse files

powerpc/xmon: Check cpu id in commands "c#", "dp#" and "dx#"



[ Upstream commit 8873aab8646194a4446117bb617cc71bddda2dee ]

All these commands end up peeking into the PACA using the user
originated cpu id as an index. Check the cpu id is valid in order
to prevent xmon to crash. Instead of printing an error, this follows
the same behavior as the "lp s #" command : ignore the buggy cpu id
parameter and fall back to the #-less version of the command.

Signed-off-by: default avatarGreg Kurz <groug@kaod.org>
Reviewed-by: default avatarCédric Le Goater <clg@kaod.org>
Signed-off-by: default avatarMichael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/161531347060.252863.10490063933688958044.stgit@bahia.lan


Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
(cherry picked from commit 04b90b8d0b6929d7427551215b71901959c8e098)
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
parent b490b0a0
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment