arm64: fix return code check when changing emulation handler
commit 909633957d85561dab7655d69a9d17dd16231d92 upstream. 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:Gene Hackmann <ghackmann@google.com> Signed-off-by:
Will Deacon <will.deacon@arm.com> Signed-off-by:
David Brown <david.brown@linaro.org>
Loading
Please register or sign in to comment