From 9e6334f51655ac71c9d18207654d934af991f755 Mon Sep 17 00:00:00 2001 From: Hauke Mehrtens Date: Sat, 23 Oct 2010 20:14:00 +0200 Subject: [PATCH] compat: lock correct mutex in device_lock This seams to be an error as all the other functions are working on the other struct. CC: Blaise Gassend Signed-off-by: Hauke Mehrtens --- include/linux/compat-2.6.34.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/linux/compat-2.6.34.h b/include/linux/compat-2.6.34.h index f710d08b1c4a..763abcacfca1 100644 --- a/include/linux/compat-2.6.34.h +++ b/include/linux/compat-2.6.34.h @@ -143,7 +143,7 @@ do { \ static inline void device_lock(struct device *dev) { #if defined(CONFIG_PREEMPT_RT) || defined(CONFIG_PREEMPT_DESKTOP) - mutex_lock(&dev->parent->mutex); + mutex_lock(&dev->mutex); #else down(&dev->sem); #endif -- 2.30.2