summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArtur Grabowski <art@cvs.openbsd.org>2001-06-08 10:35:15 +0000
committerArtur Grabowski <art@cvs.openbsd.org>2001-06-08 10:35:15 +0000
commit22a7196c65d64289a3f911f39ec889f31979d743 (patch)
treea97ff3b48939f3a78c9ed5f5ed352d1cde139277
parentd2b4e13102bcfab23b69510d177550b11ca6bbf5 (diff)
I hate cvs.
-rw-r--r--sys/crypto/cryptombuf.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/crypto/cryptombuf.c b/sys/crypto/cryptombuf.c
index e07934b96f6..da6ad720914 100644
--- a/sys/crypto/cryptombuf.c
+++ b/sys/crypto/cryptombuf.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cryptombuf.c,v 1.1 2001/06/08 08:15:50 deraadt Exp $ */
+/* $OpenBSD: cryptombuf.c,v 1.2 2001/06/08 10:35:14 art Exp $ */
/*
* Copyright (c) 1999 Theo de Raadt
@@ -64,9 +64,8 @@ mbuf2pages(m, 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) == FALSE)
+ panic("mbuf2pages: page not mapped");
pa += off;