[patch, -rc5-mm1] lock validator, fix NULL type->name bug

From: Ingo Molnar
Date: Tue May 30 2006 - 07:10:21 EST


Subject: lock validator, fix NULL type->name bug
From: Ingo Molnar <mingo@xxxxxxx>

this should fix the bug reported Mike Galbraith: pass in a non-NULL
mutex name string even if DEBUG_MUTEXES is turned off.

Signed-off-by: Ingo Molnar <mingo@xxxxxxx>
---
include/linux/mutex.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

Index: linux/include/linux/mutex.h
===================================================================
--- linux.orig/include/linux/mutex.h
+++ linux/include/linux/mutex.h
@@ -80,7 +80,7 @@ struct mutex_waiter {
do { \
static struct lockdep_type_key __key; \
\
- __mutex_init((mutex), NULL, &__key); \
+ __mutex_init((mutex), #mutex, &__key); \
} while (0)
# define mutex_destroy(mutex) do { } while (0)
#endif
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/