From: Ingo Molnar Date: Wed, 13 Dec 2006 08:34:39 +0000 (-0800) Subject: [PATCH] lockdep: filter off by default X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a664089741aa9010333ecbdadbf5d9de62bafa2d;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git [PATCH] lockdep: filter off by default 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/lockdep.c b/kernel/lockdep.c index b02032476dc2..5d69c7d7407e 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