diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/mvme68k/mvme68k/mem.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/mvme68k/mvme68k/mem.c b/sys/arch/mvme68k/mvme68k/mem.c index 4330f7a459f..ad1173a50b6 100644 --- a/sys/arch/mvme68k/mvme68k/mem.c +++ b/sys/arch/mvme68k/mvme68k/mem.c @@ -1,4 +1,4 @@ -/* $Id: mem.c,v 1.2 1995/11/07 08:50:22 deraadt Exp $ */ +/* $Id: mem.c,v 1.3 1995/11/30 22:52:05 deraadt Exp $ */ /* * Copyright (c) 1995 Theo de Raadt @@ -169,6 +169,8 @@ mmrw(dev, uio, flags) if (!kernacc((caddr_t)v, c, uio->uio_rw == UIO_READ ? B_READ : B_WRITE)) return (EFAULT); + if (v < NBPG) + return (EFAULT); error = uiomove((caddr_t)v, c, uio); continue; |