diff options
author | Russell Currey <[email protected]> | 2023-02-10 19:03:38 +1100 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2023-02-12 22:12:36 +1100 |
commit | c9fd2952754a03b2c14433c0318f4b46e9c0f2ef (patch) | |
tree | 9b8b11931015c5ac11c454be8e0d7a60029f6cd8 /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | fcf63d6b8ab9b12c2ce1b4bde12a3c391029c998 (diff) |
powerpc/secvar: Fix incorrect return in secvar_sysfs_load()
secvar_ops->get_next() returns -ENOENT when there are no more variables
to return, which is expected behaviour.
Fix this by returning 0 if get_next() returns -ENOENT.
This fixes an issue introduced in commit bd5d9c743d38 ("powerpc: expose
secure variables to userspace via sysfs"), but the return code of
secvar_sysfs_load() was never checked so this issue never mattered.
Signed-off-by: Russell Currey <[email protected]>
Signed-off-by: Andrew Donnellan <[email protected]>
Reviewed-by: Stefan Berger <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions