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

Skip to content
Commit 90963395 authored by Will Deacon's avatar Will Deacon
Browse files

arm64: fix return code check when changing emulation handler



update_insn_emulation_mode() returns 0 on success, so we should be
treating any non-zero values as failure, rather than the other way
around. Otherwise, writes to the sysctl file controlling the emulation
are ignored and immediately rolled back.

Reported-by: default avatarGene Hackmann <ghackmann@google.com>
Signed-off-by: default avatarWill Deacon <will.deacon@arm.com>
parent 7f73f7ae
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