diff options
| author | John Baldwin <jhb@FreeBSD.org> | 2002-05-20 19:16:22 +0000 |
|---|---|---|
| committer | John Baldwin <jhb@FreeBSD.org> | 2002-05-20 19:16:22 +0000 |
| commit | 525c1359726efe173a8657cf5148324a43c45aa1 (patch) | |
| tree | 13a52e12b82883226618914640df210af6ba431e | |
| parent | 465996134b3a142f0562cab8557b06a0361c96ef (diff) | |
Notes
| -rw-r--r-- | sys/kern/subr_witness.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_witness.c b/sys/kern/subr_witness.c index 099828de4d63..394d1a784041 100644 --- a/sys/kern/subr_witness.c +++ b/sys/kern/subr_witness.c @@ -848,10 +848,10 @@ witness_unlock(struct lock_object *lock, int flags, const char *file, int line) td->td_proc->p_pid, instance->li_lock->lo_name, (*lock_list)->ll_count - 1); - (*lock_list)->ll_count--; - for (j = i; j < (*lock_list)->ll_count; j++) + for (j = i; j < (*lock_list)->ll_count - 1; j++) (*lock_list)->ll_children[j] = (*lock_list)->ll_children[j + 1]; + (*lock_list)->ll_count--; intr_restore(s); if ((*lock_list)->ll_count == 0) { lle = *lock_list; |
