From: Will Deacon Date: Tue, 25 Nov 2014 10:05:35 +0000 (+0000) Subject: arm64: fix return code check when changing emulation handler X-Git-Tag: omap-for-v3.19/fixes-for-merge-window~18^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=909633957d85561dab7655d69a9d17dd16231d92;p=pandora-kernel.git 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 Signed-off-by: Will Deacon --- Reading git-diff-tree failed