aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/lockdep.c1
-rw-r--r--kernel/lockdep_proc.c3
2 files changed, 4 insertions, 0 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 410c3365ad8f..ab933fecd2a1 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -3176,6 +3176,7 @@ static void zap_class(struct lock_class *class)
3176 list_del_rcu(&class->hash_entry); 3176 list_del_rcu(&class->hash_entry);
3177 list_del_rcu(&class->lock_entry); 3177 list_del_rcu(&class->lock_entry);
3178 3178
3179 class->key = NULL;
3179} 3180}
3180 3181
3181static inline int within(const void *addr, void *start, unsigned long size) 3182static inline int within(const void *addr, void *start, unsigned long size)
diff --git a/kernel/lockdep_proc.c b/kernel/lockdep_proc.c
index 6252ff799d19..fa19aee604c2 100644
--- a/kernel/lockdep_proc.c
+++ b/kernel/lockdep_proc.c
@@ -201,6 +201,9 @@ static int lc_show(struct seq_file *m, void *v)
201 201
202 for (i = 0; i < chain->depth; i++) { 202 for (i = 0; i < chain->depth; i++) {
203 class = lock_chain_get_class(chain, i); 203 class = lock_chain_get_class(chain, i);
204 if (!class->key)
205 continue;
206
204 seq_printf(m, "[%p] ", class->key); 207 seq_printf(m, "[%p] ", class->key);
205 print_name(m, class); 208 print_name(m, class);
206 seq_puts(m, "\n"); 209 seq_puts(m, "\n");