summaryrefslogtreecommitdiff
path: root/sys/crypto/criov.c
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-08 08:09:45 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-08 08:09:45 +0000
commit95da2243c76760307b218cb7f05645e68a73e8af (patch)
tree594a78dc6e16ba4f07e3c1bc9c44def6966cf19e /sys/crypto/criov.c
parent0579d34f9bf07b4a6bfebb51a83de3ac8356c01f (diff)
Change the paddr_t pmap_extract(struct pmap *, vaddr_t) interface to
boolean_t pmap_extract(struct pmap *, vaddr_t, paddr_t *). Matches NetBSD. Tested by various people on various platforms.
Diffstat (limited to 'sys/crypto/criov.c')
-rw-r--r--sys/crypto/criov.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/crypto/criov.c b/sys/crypto/criov.c
index 200e64456ab..aac023840e6 100644
--- a/sys/crypto/criov.c
+++ b/sys/crypto/criov.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: criov.c,v 1.2 2001/05/14 02:45:19 deraadt Exp $ */
+/* $OpenBSD: criov.c,v 1.3 2001/06/08 08:09:35 art Exp $ */
/*
* Copyright (c) 1999 Theo de Raadt
@@ -65,9 +65,9 @@ iov2pages(uio, np, pp, lp, maxp, nicep)
va -= off;
next_page:
- pa = pmap_extract(pmap_kernel(), va);
- if (pa == 0)
- panic("mbuf2pages: pa == 0");
+
+ if (pmap_extract(pmap_kernel(), va, &pa) == TRUE)
+ panic("mbuf2pages: unmapped pages");
pa += off;