diff options
author | Christoph Hellwig <hch@lst.de> | 2020-09-03 16:22:42 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2020-09-09 04:21:37 +0200 |
commit | 5ae4998b5d6fc703a16c9fa935fb7d335843bf22 (patch) | |
tree | 68666ba59e5c6f3fa10f341f514f2eddbc94c859 /arch/powerpc/lib | |
parent | powerpc: use non-set_fs based maccess routines (diff) | |
download | linux-5ae4998b5d6fc703a16c9fa935fb7d335843bf22.tar.xz linux-5ae4998b5d6fc703a16c9fa935fb7d335843bf22.zip |
powerpc: remove address space overrides using set_fs()
Stop providing the possibility to override the address space using
set_fs() now that there is no need for that any more.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/powerpc/lib')
-rw-r--r-- | arch/powerpc/lib/sstep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/powerpc/lib/sstep.c b/arch/powerpc/lib/sstep.c index caee8cc77e19..8342188ea1ac 100644 --- a/arch/powerpc/lib/sstep.c +++ b/arch/powerpc/lib/sstep.c @@ -108,11 +108,11 @@ static nokprobe_inline long address_ok(struct pt_regs *regs, { if (!user_mode(regs)) return 1; - if (__access_ok(ea, nb, USER_DS)) + if (__access_ok(ea, nb)) return 1; - if (__access_ok(ea, 1, USER_DS)) + if (__access_ok(ea, 1)) /* Access overlaps the end of the user region */ - regs->dar = USER_DS.seg; + regs->dar = TASK_SIZE_MAX - 1; else regs->dar = ea; return 0; |