ARM: 9125/1: fix incorrect use of get_kernel_nofault()

Commit 344179fc7ef4 ("ARM: 9106/1: traps: use get_kernel_nofault instead
of set_fs()") replaced an occurrence of __get_user() with
get_kernel_nofault(), but inverted the sense of the conditional in the
process, resulting in no values to be printed at all.

I.e., every exception stack now looks like this:

Exception stack(0xc18d1fb0 to 0xc18d1ff8)
1fa0: ???????? ???????? ???????? ????????
1fc0: ???????? ???????? ???????? ???????? ???????? ???????? ???????? ????????
1fe0: ???????? ???????? ???????? ???????? ???????? ????????

which is rather unhelpful.

Fixes: 344179fc7ef4 ("ARM: 9106/1: traps: use get_kernel_nofault instead of set_fs()")
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Reviewed-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Russell King (Oracle) <rmk+kernel@armlinux.org.uk>

authored by Ard Biesheuvel and committed by Russell King (Oracle) 00d43d13 9d417cbe

+1 -1
+1 -1
arch/arm/kernel/traps.c
··· 136 for (p = first, i = 0; i < 8 && p < top; i++, p += 4) { 137 if (p >= bottom && p < top) { 138 unsigned long val; 139 - if (get_kernel_nofault(val, (unsigned long *)p)) 140 sprintf(str + i * 9, " %08lx", val); 141 else 142 sprintf(str + i * 9, " ????????");
··· 136 for (p = first, i = 0; i < 8 && p < top; i++, p += 4) { 137 if (p >= bottom && p < top) { 138 unsigned long val; 139 + if (!get_kernel_nofault(val, (unsigned long *)p)) 140 sprintf(str + i * 9, " %08lx", val); 141 else 142 sprintf(str + i * 9, " ????????");