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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Subject: lock validator, fix NULL type->name bug
From: Ingo Molnar <[email protected]>

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 <[email protected]>
---
 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 [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux