]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6488b5911f031c02d79d30e5e9a451caafee8362
tree47b069b6b4e341d94e8613add84dcc5af198cc11
parentae110dd682f83a66541dc38bcd6ed88590b758b7
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