Date: Tue, 27 Jan 2004 14:02:14 -0800 (PST) From: John Baldwin <jhb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 46017 for review Message-ID: <200401272202.i0RM2EV1023126@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=46017 Change 46017 by jhb@jhb_slimer on 2004/01/27 14:01:38 Destroy the test mutex on unload as we can panic on unload otherwise. Oops. Affected files ... .. //depot/projects/smpng/sys/modules/crash/crash.c#9 edit Differences ... ==== //depot/projects/smpng/sys/modules/crash/crash.c#9 (text+ko) ==== @@ -254,6 +254,8 @@ TRYLOCK_TEST(&test2_mtx, "recursive locked test2"); mtx_unlock(&test2_mtx); #undef TRYLOCK_TEST + mtx_destroy(&test1_mtx); + mtx_destroy(&test2_mtx); break; default: panic("event %d is bogus\n", event); @@ -299,6 +301,7 @@ mtx_unlock(&event_mtx); mtx_destroy(&event_mtx); cv_destroy(&event_cv); + mtx_destroy(&test_mtx); sx_destroy(&foo); sx_destroy(&bar); sx_destroy(&bar2);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401272202.i0RM2EV1023126>