diff --git a/sys/pc98/i386/machdep.c b/sys/pc98/i386/machdep.c index 370f4fdf5337..02ee80d3d70c 100644 --- a/sys/pc98/i386/machdep.c +++ b/sys/pc98/i386/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.30 1997/03/22 18:54:33 kato Exp $ + * $Id: machdep.c,v 1.31 1997/03/24 12:29:14 bde Exp $ */ #include "npx.h" @@ -579,7 +579,7 @@ sigreturn(p, uap, retval) ((caddr_t)scp - offsetof(struct sigframe, sf_sc)); if (useracc((caddr_t)fp, sizeof (*fp), B_WRITE) == 0) - return(EINVAL); + return(EFAULT); /* * Don't allow users to change privileged or reserved flags. diff --git a/sys/pc98/pc98/machdep.c b/sys/pc98/pc98/machdep.c index 370f4fdf5337..02ee80d3d70c 100644 --- a/sys/pc98/pc98/machdep.c +++ b/sys/pc98/pc98/machdep.c @@ -35,7 +35,7 @@ * SUCH DAMAGE. * * from: @(#)machdep.c 7.4 (Berkeley) 6/3/91 - * $Id: machdep.c,v 1.30 1997/03/22 18:54:33 kato Exp $ + * $Id: machdep.c,v 1.31 1997/03/24 12:29:14 bde Exp $ */ #include "npx.h" @@ -579,7 +579,7 @@ sigreturn(p, uap, retval) ((caddr_t)scp - offsetof(struct sigframe, sf_sc)); if (useracc((caddr_t)fp, sizeof (*fp), B_WRITE) == 0) - return(EINVAL); + return(EFAULT); /* * Don't allow users to change privileged or reserved flags.