Missing arg to cv_timedwait().

This commit is contained in:
ad 2008-01-05 17:38:50 +00:00
parent bd7f347055
commit a5edcb2c82
1 changed files with 3 additions and 3 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fd.c,v 1.35 2008/01/02 11:48:20 ad Exp $ */
/* $NetBSD: fd.c,v 1.36 2008/01/05 17:38:50 ad Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -89,7 +89,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.35 2008/01/02 11:48:20 ad Exp $");
__KERNEL_RCSID(0, "$NetBSD: fd.c,v 1.36 2008/01/05 17:38:50 ad Exp $");
#include "opt_ddb.h"
@ -1543,7 +1543,7 @@ fdformat(dev, finfo, l)
/* XXX very dodgy */
mutex_enter(bp->b_objlock);
while (!(bp->b_oflags & BO_DONE)) {
rv = cv_timedwait(&bp->b_done, 20 * hz);
rv = cv_timedwait(&bp->b_done, bp->b_objlock, 20 * hz);
if (rv == EWOULDBLOCK)
break;
}