Fix WITNESS when INVARIANT_SUPPORT is defined.

This fixes tinderbox breakage from r244105.

Pointed out by: adrian
This commit is contained in:
Alfred Perlstein 2012-12-11 05:59:16 +00:00
parent fc56c9c5e2
commit c2c5ede903
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=244111

View File

@ -2263,6 +2263,7 @@ witness_assert(const struct lock_object *lock, int flags, const char *file,
else {
kassert_panic("Lock (%s) %s is not sleep or spin!",
class->lc_name, lock->lo_name);
return;
}
switch (flags) {
case LA_UNLOCKED: