]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: 7939/1: traps: fix opcode endianness when read from user memory
authorTaras Kondratiuk <taras.kondratiuk@linaro.org>
Fri, 10 Jan 2014 00:36:00 +0000 (01:36 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 11 Jan 2014 12:06:59 +0000 (12:06 +0000)
commitce4819f21d41779dbe1714decce1bb564c395691
tree7abdd9c40c80eb2b44352d6c7c200e5dad83f26b
parentb2b934d801f5576884bd3b6e68b26dcf13539a4d
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: Victor Kamensky <victor.kamensky@linaro.org>
Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk>
Signed-off-by: Taras Kondratiuk <taras.kondratiuk@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/kernel/traps.c