summaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorchs <chs@NetBSD.org>2002-02-14 07:08:02 +0000
committerchs <chs@NetBSD.org>2002-02-14 07:08:02 +0000
commitb744097a5fc519e6f2d0ec6149530ffa3f9d1dfb (patch)
tree3c0847b56e20af32190c7bdcb319ec93d8d2d328 /sys/dev
parentb127ec2616dd19293acfbfc6cd4f3b6d61a05900 (diff)
allow writing to write-only mappings. fixes PR 3493.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ic/rrunner.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/ic/rrunner.c b/sys/dev/ic/rrunner.c
index a0b3886fcce..d923437e1c4 100644
--- a/sys/dev/ic/rrunner.c
+++ b/sys/dev/ic/rrunner.c
@@ -1,4 +1,4 @@
-/* $NetBSD: rrunner.c,v 1.29 2002/01/12 16:03:12 tsutsui Exp $ */
+/* $NetBSD: rrunner.c,v 1.30 2002/02/14 07:08:02 chs Exp $ */
/*
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.29 2002/01/12 16:03:12 tsutsui Exp $");
+__KERNEL_RCSID(0, "$NetBSD: rrunner.c,v 1.30 2002/02/14 07:08:02 chs Exp $");
#include "opt_inet.h"
#include "opt_ns.h"
@@ -1045,7 +1045,7 @@ esh_fpread(dev, uio, ioflag)
for (i = 0; i < uio->uio_iovcnt; i++) {
iovp = &uio->uio_iov[i];
error = uvm_vslock(p, iovp->iov_base, iovp->iov_len,
- VM_PROT_READ | VM_PROT_WRITE);
+ VM_PROT_WRITE);
if (error) {
/* Unlock what we've locked so far. */
for (--i; i >= 0; i--) {