From: Hauke Mehrtens Date: Sat, 23 Oct 2010 18:14:00 +0000 (+0200) Subject: compat: lock correct mutex in device_lock X-Git-Tag: v2.6.37-rc1-1~5 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=9e6334f51655ac71c9d18207654d934af991f755;p=~emulex%2Ftmp%2Fcompat%2F.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 f710d08..763abca 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