diff options
Diffstat (limited to 'kernel/lockdep.c')
-rw-r--r-- | kernel/lockdep.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/lockdep.c b/kernel/lockdep.c index e69434b070da..103bed8423ff 100644 --- a/kernel/lockdep.c +++ b/kernel/lockdep.c | |||
@@ -722,7 +722,7 @@ register_lock_class(struct lockdep_map *lock, unsigned int subclass, int force) | |||
722 | 722 | ||
723 | class = look_up_lock_class(lock, subclass); | 723 | class = look_up_lock_class(lock, subclass); |
724 | if (likely(class)) | 724 | if (likely(class)) |
725 | return class; | 725 | goto out_set_class_cache; |
726 | 726 | ||
727 | /* | 727 | /* |
728 | * Debug-check: all keys must be persistent! | 728 | * Debug-check: all keys must be persistent! |
@@ -807,6 +807,7 @@ out_unlock_set: | |||
807 | graph_unlock(); | 807 | graph_unlock(); |
808 | raw_local_irq_restore(flags); | 808 | raw_local_irq_restore(flags); |
809 | 809 | ||
810 | out_set_class_cache: | ||
810 | if (!subclass || force) | 811 | if (!subclass || force) |
811 | lock->class_cache[0] = class; | 812 | lock->class_cache[0] = class; |
812 | else if (subclass < NR_LOCKDEP_CACHING_CLASSES) | 813 | else if (subclass < NR_LOCKDEP_CACHING_CLASSES) |