From 1829c65bd1a850784556256007d552c65b768755 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sat, 17 May 1997 19:48:39 +0000 Subject: &proc0 should never be used --- sys/dev/vnd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys') diff --git a/sys/dev/vnd.c b/sys/dev/vnd.c index 5957096cac4..6eb7c75e603 100644 --- a/sys/dev/vnd.c +++ b/sys/dev/vnd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vnd.c,v 1.10 1997/05/16 19:11:34 niklas Exp $ */ +/* $OpenBSD: vnd.c,v 1.11 1997/05/17 19:48:38 deraadt Exp $ */ /* $NetBSD: vnd.c,v 1.26 1996/03/30 23:06:11 christos Exp $ */ /* @@ -429,7 +429,7 @@ vndstrategy(bp) * In that case cahalk it up on proc0 instead, for * safety. */ - auio.uio_procp = (bp->b_proc ? bp->b_proc : &proc0); + auio.uio_procp = (bp->b_proc ? bp->b_proc : curproc); VOP_LOCK(vnd->sc_vp); vnd->sc_flags |= VNF_BUSY; -- cgit v1.2.3