aboutsummaryrefslogtreecommitdiff
path: root/sys/pc98
diff options
context:
space:
mode:
authorAlan Cox <alc@FreeBSD.org>1999-10-31 19:39:51 +0000
committerAlan Cox <alc@FreeBSD.org>1999-10-31 19:39:51 +0000
commit0d4d02ecf22e769239ac48fca787a330fbea6e0d (patch)
treec4b48dfb370f47e318328863565b1b1343a7f8c4 /sys/pc98
parent96a9a981cc0a9de4d89afbdb571c3a2cad584a45 (diff)
Notes
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/i386/machdep.c4
-rw-r--r--sys/pc98/pc98/machdep.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c
index ed1e1a260288..7f49b9b9b2d0 100644
--- a/sys/pc98/i386/machdep.c
+++ b/sys/pc98/i386/machdep.c
@@ -782,7 +782,7 @@ osigreturn(p, uap)
scp = uap->sigcntxp;
- if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE))
+ if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_READ))
return(EFAULT);
eflags = scp->sc_ps;
@@ -893,7 +893,7 @@ sigreturn(p, uap)
ucp = uap->sigcntxp;
eflags = ucp->uc_mcontext.mc_eflags;
- if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE))
+ if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ))
return(EFAULT);
if (eflags & PSL_VM) {
diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c
index ed1e1a260288..7f49b9b9b2d0 100644
--- a/sys/pc98/pc98/machdep.c
+++ b/sys/pc98/pc98/machdep.c
@@ -782,7 +782,7 @@ osigreturn(p, uap)
scp = uap->sigcntxp;
- if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_WRITE))
+ if (!useracc((caddr_t)scp, sizeof (struct osigcontext), VM_PROT_READ))
return(EFAULT);
eflags = scp->sc_ps;
@@ -893,7 +893,7 @@ sigreturn(p, uap)
ucp = uap->sigcntxp;
eflags = ucp->uc_mcontext.mc_eflags;
- if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_WRITE))
+ if (!useracc((caddr_t)ucp, sizeof(ucontext_t), VM_PROT_READ))
return(EFAULT);
if (eflags & PSL_VM) {