diff options
author | Russell Currey <ruscur@russell.cc> | 2023-02-22 05:17:08 +0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2023-02-22 09:01:46 +0300 |
commit | f82cdc37c4bd4ba905bf99ade9782a639b5c12e9 (patch) | |
tree | 413f7146eb2ed8ca6f6d6f19da05ad1099bd31e9 /arch/powerpc/boot | |
parent | bec46462567032afb05017cb10c545aab0810a73 (diff) | |
download | linux-f82cdc37c4bd4ba905bf99ade9782a639b5c12e9.tar.xz |
powerpc/pseries: Avoid hcall in plpks_is_available() on non-pseries
plpks_is_available() can be called on any platform via kexec but calls
_plpks_get_config() which makes a hcall, which will only work on pseries.
Fix this by returning early in plpks_is_available() if hcalls aren't
possible.
Fixes: 119da30d037d ("powerpc/pseries: Expose PLPKS config values, support additional fields")
Reported-by: Murphy Zhou <jencce.kernel@gmail.com>
Signed-off-by: Russell Currey <ruscur@russell.cc>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20230222021708.146257-1-ruscur@russell.cc
Diffstat (limited to 'arch/powerpc/boot')
0 files changed, 0 insertions, 0 deletions