diff options
author | Will Deacon <will.deacon@arm.com> | 2014-11-25 13:05:35 +0300 |
---|---|---|
committer | Will Deacon <will.deacon@arm.com> | 2014-11-25 13:05:35 +0300 |
commit | 909633957d85561dab7655d69a9d17dd16231d92 (patch) | |
tree | 3acf8d21e92305a5ac51350e23706ff59dd08f11 /arch/arm64/include/asm/cpufeature.h | |
parent | 7f73f7aef824b8bc27046edaf6b73bca4b0e7669 (diff) | |
download | linux-909633957d85561dab7655d69a9d17dd16231d92.tar.xz |
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: Gene Hackmann <ghackmann@google.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
Diffstat (limited to 'arch/arm64/include/asm/cpufeature.h')
0 files changed, 0 insertions, 0 deletions