aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/lockdep/tests/unlock_balance.c
diff options
context:
space:
mode:
authorBart Van Assche <bvanassche@acm.org>2018-12-06 17:11:31 -0800
committerIngo Molnar <mingo@kernel.org>2018-12-11 14:54:51 +0100
commit886adbed7ac19352315e9f1dd880360c7544d25c (patch)
treefdce17cf754c5684a362cae9202ef7752af52a16 /tools/lib/lockdep/tests/unlock_balance.c
parenttools/lib/lockdep: Add dummy print_irqtrace_events() implementation (diff)
downloadlinux-dev-886adbed7ac19352315e9f1dd880360c7544d25c.tar.xz
linux-dev-886adbed7ac19352315e9f1dd880360c7544d25c.zip
tools/lib/lockdep/tests: Test the lockdep_reset_lock() implementation
This patch makes sure that the lockdep_reset_lock() function gets tested. Signed-off-by: Bart Van Assche <bvanassche@acm.org> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Cc: Johannes Berg <johannes@sipsolutions.net> Cc: Linus Torvalds <torvalds@linux-foundation.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Sasha Levin <sasha.levin@oracle.com> Cc: Thomas Gleixner <tglx@linutronix.de> Cc: Waiman Long <longman@redhat.com> Cc: johannes.berg@intel.com Cc: tj@kernel.org Link: https://lkml.kernel.org/r/20181207011148.251812-8-bvanassche@acm.org Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to '')
-rw-r--r--tools/lib/lockdep/tests/unlock_balance.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/lib/lockdep/tests/unlock_balance.c b/tools/lib/lockdep/tests/unlock_balance.c
index 34cf32f689de..dba25064b50a 100644
--- a/tools/lib/lockdep/tests/unlock_balance.c
+++ b/tools/lib/lockdep/tests/unlock_balance.c
@@ -10,4 +10,6 @@ void main(void)
pthread_mutex_lock(&a);
pthread_mutex_unlock(&a);
pthread_mutex_unlock(&a);
+
+ pthread_mutex_destroy(&a);
}