Subject: CVS commit: src/sys/dev
To: None <source-changes@NetBSD.org>
From: Juan Romero Pardines <xtraeme@netbsd.org>
List: source-changes
Date: 11/19/2007 16:01:09
Module Name:	src
Committed By:	xtraeme
Date:		Mon Nov 19 16:01:09 UTC 2007

Modified Files:
	src/sys/dev: bio.c

Log Message:
Make sure the mutex is initialized before using it, use the patch
provided by Martin Husemann on:
http://mail-index.netbsd.org/tech-kern/2007/11/16/0006.html

This fixes the uninitialized lock when calling bio_register() on mfi(4)
and other drivers, caught by LOCKDEBUG.

Ok'ed by Andrew Doran <ad@netbsd.org>


To generate a diff of this commit:
cvs rdiff -r1.2 -r1.3 src/sys/dev/bio.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.