]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: fix endianness annotation in call_undef_hook()
authorLuc Van Oostenryck <luc.vanoostenryck@gmail.com>
Wed, 28 Jun 2017 14:55:55 +0000 (16:55 +0200)
committerWill Deacon <will.deacon@arm.com>
Thu, 29 Jun 2017 10:02:42 +0000 (11:02 +0100)
commite36a8ddddc683622168662f4a3ec967795f2d5ed
treeb12662f89790cdb0e64f9169739a1c40a29e9ef2
parent15dd769e2def735237b9a81202322a3f23229a4e
arm64: fix endianness annotation in call_undef_hook()

Here we're reading thumb or ARM instructions, which are always
stored in memory in little-endian order. These values are thus
correctly converted to native order but the intermediate value
should be annotated as for little-endian values.

Fix this by declaring the intermediate var as __le32 or __le16.

Signed-off-by: Luc Van Oostenryck <luc.vanoostenryck@gmail.com>
Signed-off-by: Will Deacon <will.deacon@arm.com>
arch/arm64/kernel/traps.c