aboutsummaryrefslogtreecommitdiff
path: root/arch/powerpc/lib/sstep.c
diff options
context:
space:
mode:
authorGravatar Christoph Hellwig <hch@lst.de> 2020-09-03 16:22:42 +0200
committerGravatar Al Viro <viro@zeniv.linux.org.uk> 2020-09-08 22:21:37 -0400
commit5ae4998b5d6fc703a16c9fa935fb7d335843bf22 (patch)
tree68666ba59e5c6f3fa10f341f514f2eddbc94c859 /arch/powerpc/lib/sstep.c
parentpowerpc: use non-set_fs based maccess routines (diff)
downloadlinux-5ae4998b5d6fc703a16c9fa935fb7d335843bf22.tar.gz
linux-5ae4998b5d6fc703a16c9fa935fb7d335843bf22.tar.bz2
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/sstep.c')
-rw-r--r--arch/powerpc/lib/sstep.c6
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;