From: Hauke Mehrtens Date: Sat, 23 Oct 2010 18:14:00 +0000 (+0200) Subject: compat: lock correct mutex in device_lock X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=9e6334f51655ac71c9d18207654d934af991f755;p=openwrt%2Fstaging%2Fblogic.git 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 --- 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