Skip to content
Commit d6cd9894 authored by Taras Kondratiuk's avatar Taras Kondratiuk Committed by Russell King
Browse files

ARM: 7939/1: traps: fix opcode endianness when read from user memory



Currently code has an inverted logic: opcode from user memory
is swapped to a proper endianness only in case of read error.
While normally opcode should be swapped only if it was read
correctly from user memory.

Reviewed-by: default avatarVictor Kamensky <victor.kamensky@linaro.org>
Signed-off-by: default avatarBen Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: default avatarTaras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 261521f1
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment