summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2013-01-14 09:06:24 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2013-01-14 09:06:24 -0800
commitf6a0e2ca7b1fe89da4e4b0afa6ba08dc34f1a0f7 (patch)
tree3c5db310977d5dd59858da621bcbddd3583186ec /drivers
parent7f1825da9f4f0b54e469a5c85f8bc006cd4818a0 (diff)
parente6028db0146cf5a68dbd1508225ea49840997880 (diff)
downloadlinux-exynos-f6a0e2ca7b1fe89da4e4b0afa6ba08dc34f1a0f7.tar.gz
linux-exynos-f6a0e2ca7b1fe89da4e4b0afa6ba08dc34f1a0f7.tar.bz2
linux-exynos-f6a0e2ca7b1fe89da4e4b0afa6ba08dc34f1a0f7.zip
Merge tag 'char-misc-3.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc
Pull char/misc fix from Greg Kroah-Hartman: "Here is a single fix for the mei driver that resolves a reported issue. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>" * tag 'char-misc-3.8-rc3' of git://git.kernel.org/pub/scm/linux/kernel/git/gregkh/char-misc: mei: fix mismatch in mutex unlock-lock in mei_amthif_read()
Diffstat (limited to 'drivers')
-rw-r--r--drivers/misc/mei/amthif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c
index 18794aea6062..e40ffd9502d1 100644
--- a/drivers/misc/mei/amthif.c
+++ b/drivers/misc/mei/amthif.c
@@ -187,13 +187,13 @@ int mei_amthif_read(struct mei_device *dev, struct file *file,
wait_ret = wait_event_interruptible(dev->iamthif_cl.wait,
(cb = mei_amthif_find_read_list_entry(dev, file)));
+ /* Locking again the Mutex */
+ mutex_lock(&dev->device_lock);
+
if (wait_ret)
return -ERESTARTSYS;
dev_dbg(&dev->pdev->dev, "woke up from sleep\n");
-
- /* Locking again the Mutex */
- mutex_lock(&dev->device_lock);
}