Commit c75e59e
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>1 parent ea2abe2 commit c75e59e
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
845 | 845 | | |
846 | 846 | | |
847 | 847 | | |
848 | | - | |
849 | 848 | | |
850 | 849 | | |
851 | 850 | | |
| |||
918 | 917 | | |
919 | 918 | | |
920 | 919 | | |
921 | | - | |
922 | 920 | | |
923 | 921 | | |
924 | | - | |
| 922 | + | |
925 | 923 | | |
926 | 924 | | |
927 | 925 | | |
| |||
930 | 928 | | |
931 | 929 | | |
932 | 930 | | |
933 | | - | |
934 | 931 | | |
935 | 932 | | |
936 | 933 | | |
| |||
0 commit comments