Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Sep 2003 14:14:16 -0700 (PDT)
From:      Warner Losh <imp@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 38918 for review
Message-ID:  <200309302114.h8ULEGV4024490@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=38918

Change 38918 by imp@imp_koguchi on 2003/09/30 14:14:04

	unlock the mutex

Affected files ...

.. //depot/doc/strawman-driver.c#3 edit

Differences ...

==== //depot/doc/strawman-driver.c#3 (text+ko) ====

@@ -21,10 +21,12 @@
 	sc = dev->si_drv1;
 ...
 	case FOO_GERBIL:
-		/* Wait for a weird GERBIL event in the device and return it */
+		/*
+		 * Wait for a weird GERBIL event in the device and return it
 		 */
 		mtx_lock(&sc->mtx);
 		cv_wait(&sc->cv, &sc->mtx);
+		mtx_unlock(&sc->mtx);
 		if (sc->dead)
 			return EGONE;
 		...



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200309302114.h8ULEGV4024490>