nds32: use get_kernel_nofault in dump_mem
authorChristoph Hellwig <hch@lst.de>
Mon, 20 Jul 2020 11:44:48 +0000 (13:44 +0200)
committerGreentime Hu <green.hu@gmail.com>
Thu, 25 Feb 2021 06:31:49 +0000 (14:31 +0800)
commitfa2f478a348efa483abd4159c9f5478a3867bcc0
tree47b069b6b4e341d94e8613add84dcc5af198cc11
parent9d63fecfcb2c7d379b6dd06892c534068a03a470
nds32: use get_kernel_nofault in dump_mem

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>
Acked-by: Nick Hu <nickhu@andestech.com>
Acked-by: Greentime Hu <green.hu@gmail.com>
Signed-off-by: Greentime Hu <green.hu@gmail.com>
arch/nds32/kernel/traps.c