PERFORCE change 46017 for review
John Baldwin
jhb at FreeBSD.org
Tue Jan 27 14:02:35 PST 2004
http://perforce.freebsd.org/chv.cgi?CH=46017
Change 46017 by jhb at 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);
More information about the p4-projects
mailing list