m68k: Use get_kernel_nofault() in show_registers()
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Jul 2020 11:43:14 +0000 (13:43 +0200)
committerGeert Uytterhoeven <geert@linux-m68k.org>
Wed, 26 Aug 2020 11:26:52 +0000 (13:26 +0200)
commitc75e59e401b66971d166780c9fad5f741db2c54e
tree67e9fd4c39abc649a16fdfa3c02fd2c5fdade356
parentea2abe2fd59a73b26c01e9a3bb83efc46e44face
m68k: Use get_kernel_nofault() in show_registers()

Use the proper get_kernel_nofault() helper to access an unsafe kernel
pointer without faulting instead of playing with set_fs() and
get_user().

Signed-off-by: Christoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/20200720114314.196686-1-hch@lst.de
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
arch/m68k/kernel/traps.c