diff options
author | dyson <dyson@FreeBSD.org> | 1996-12-29 02:29:41 +0000 |
---|---|---|
committer | dyson <dyson@FreeBSD.org> | 1996-12-29 02:29:41 +0000 |
commit | 3a939018c3842ac263749036f924109a47ad798f (patch) | |
tree | dce6f557d9ca36c637b51c6ddf8dd9ef14b0dc4e /sys | |
parent | 6a2a246ed77070189503398f3271ae65ad03e4e9 (diff) | |
download | FreeBSD-src-3a939018c3842ac263749036f924109a47ad798f.zip FreeBSD-src-3a939018c3842ac263749036f924109a47ad798f.tar.gz |
Superficial clean-up of useracc calls. (The useracc usage of
B_READ/B_WRITE is bogus anyway.) Might as well make the call prettier
anyway.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/amd64/amd64/machdep.c | 6 | ||||
-rw-r--r-- | sys/i386/i386/machdep.c | 6 |
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/amd64/amd64/machdep.c b/sys/amd64/amd64/machdep.c index 042a0b8..759ce10 100644 --- a/sys/amd64/amd64/machdep.c +++ b/sys/amd64/amd64/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.221 1996/12/17 04:19:41 davidg Exp $ + * $Id: machdep.c,v 1.222 1996/12/18 15:03:10 bde Exp $ */ #include "npx.h" @@ -565,7 +565,7 @@ sigreturn(p, uap, retval) fp = (struct sigframe *) ((caddr_t)scp - offsetof(struct sigframe, sf_sc)); - if (useracc((caddr_t)fp, sizeof (*fp), 0) == 0) + if (useracc((caddr_t)fp, sizeof (*fp), B_WRITE) == 0) return(EINVAL); /* @@ -617,7 +617,7 @@ sigreturn(p, uap, retval) regs[tSS] = scp->sc_ss; regs[tISP] = scp->sc_isp; - if (useracc((caddr_t)scp, sizeof (*scp), 0) == 0) + if (useracc((caddr_t)scp, sizeof (*scp), B_WRITE) == 0) return(EINVAL); if (scp->sc_onstack & 01) diff --git a/sys/i386/i386/machdep.c b/sys/i386/i386/machdep.c index 042a0b8..759ce10 100644 --- a/sys/i386/i386/machdep.c +++ b/sys/i386/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.221 1996/12/17 04:19:41 davidg Exp $ + * $Id: machdep.c,v 1.222 1996/12/18 15:03:10 bde Exp $ */ #include "npx.h" @@ -565,7 +565,7 @@ sigreturn(p, uap, retval) fp = (struct sigframe *) ((caddr_t)scp - offsetof(struct sigframe, sf_sc)); - if (useracc((caddr_t)fp, sizeof (*fp), 0) == 0) + if (useracc((caddr_t)fp, sizeof (*fp), B_WRITE) == 0) return(EINVAL); /* @@ -617,7 +617,7 @@ sigreturn(p, uap, retval) regs[tSS] = scp->sc_ss; regs[tISP] = scp->sc_isp; - if (useracc((caddr_t)scp, sizeof (*scp), 0) == 0) + if (useracc((caddr_t)scp, sizeof (*scp), B_WRITE) == 0) return(EINVAL); if (scp->sc_onstack & 01) |