projects/linux·commit a6640897

[PATCH] lockdep: filter off by default

a6640897 · Ingo Molnar <[email protected]> · 2006-12-13 00:34:39 -08:00

Fix typo in the class_filter() function.  (filtering is not used by default so
this only affects lockdep-internal debugging cases)

Signed-off-by: Ingo Molnar <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
Commit
a664089741aa9010333ecbdadbf5d9de62bafa2d
Parents
5d6f647f

Changes

1 files changed · +2 −2

FileStatusAddDelContent
kernel/lockdep.cmodified+2−2View file

kernel/lockdep.c

View file
diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index b020324..5d69c7d 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -172,8 +172,8 @@ static int class_filter(struct lock_class *class)
!strcmp(class->name, "&struct->lockfield"))
return 1;
#endif
- /* Allow everything else. 0 would be filter everything else */
- return 1;
+ /* Filter everything else. 1 would be to allow everything else */
+ return 0;
}
#endif