powerpc/xmon: Fix another endiannes issue in RTAS call from xmon
authorLaurent Dufour <ldufour@linux.vnet.ibm.com>
Thu, 15 Jan 2015 17:23:47 +0000 (18:23 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sun, 18 Jan 2015 22:58:16 +0000 (09:58 +1100)
commite6eb2eba494d6f99e69ca3c3748cd37a2544ab38
tree894e07e80da4e183b144da53b930d95d010778fb
parentec6f34e5b552fb0a52e6aae1a5afbbb1605cc6cc
powerpc/xmon: Fix another endiannes issue in RTAS call from xmon

The commit 3b8a3c010969 ("powerpc/pseries: Fix endiannes issue in RTAS
call from xmon") was fixing an endianness issue in the call made from
xmon to RTAS.

However, as Michael Ellerman noticed, this fix was not complete, the
token value was not byte swapped. This lead to call an unexpected and
most of the time unexisting RTAS function, which is silently ignored by
RTAS.

This fix addresses this hole.

Reported-by: Michael Ellerman <mpe@ellerman.id.au>
Cc: stable@vger.kernel.org
Signed-off-by: Laurent Dufour <ldufour@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/xmon/xmon.c