diff options
author | 1996-03-03 17:19:36 +0000 | |
---|---|---|
committer | 1996-03-03 17:19:36 +0000 | |
commit | 5ac46f4a009be3bdcce4d951fbd0eed1cac71377 (patch) | |
tree | 1ebbc69319978d4a58e8f853e4ee407742c40cbd /sys/kern/kern_physio.c | |
parent | From NetBSD: Use const qualifier with conversion, args and clist tables (diff) | |
download | wireguard-openbsd-5ac46f4a009be3bdcce4d951fbd0eed1cac71377.tar.xz wireguard-openbsd-5ac46f4a009be3bdcce4d951fbd0eed1cac71377.zip |
From NetBSD: 960217 merge
Diffstat (limited to 'sys/kern/kern_physio.c')
-rw-r--r-- | sys/kern/kern_physio.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/kern/kern_physio.c b/sys/kern/kern_physio.c index 3c8dccec428..4e02351d3f0 100644 --- a/sys/kern/kern_physio.c +++ b/sys/kern/kern_physio.c @@ -1,4 +1,5 @@ -/* $NetBSD: kern_physio.c,v 1.25 1995/10/10 02:51:45 mycroft Exp $ */ +/* $OpenBSD: kern_physio.c,v 1.2 1996/03/03 17:19:50 niklas Exp $ */ +/* $NetBSD: kern_physio.c,v 1.26 1996/02/04 02:15:51 christos Exp $ */ /*- * Copyright (c) 1994 Christopher G. Demetriou @@ -47,6 +48,8 @@ #include <sys/conf.h> #include <sys/proc.h> +#include <vm/vm.h> + /* * The routines implemented in this file are described in: * Leffler, et al.: The Design and Implementation of the 4.3BSD @@ -96,7 +99,7 @@ physio(strategy, bp, dev, flags, minphys, uio) return (EFAULT); /* Make sure we have a buffer, creating one if necessary. */ - if (nobuf = (bp == NULL)) + if ((nobuf = (bp == NULL)) != 0) bp = getphysbuf(); /* [raise the processor priority level to splbio;] */ |