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()
This commit is contained in:
@@ -187,13 +187,13 @@ int mei_amthif_read(struct mei_device *dev, struct file *file,
|
|||||||
wait_ret = wait_event_interruptible(dev->iamthif_cl.wait,
|
wait_ret = wait_event_interruptible(dev->iamthif_cl.wait,
|
||||||
(cb = mei_amthif_find_read_list_entry(dev, file)));
|
(cb = mei_amthif_find_read_list_entry(dev, file)));
|
||||||
|
|
||||||
|
/* Locking again the Mutex */
|
||||||
|
mutex_lock(&dev->device_lock);
|
||||||
|
|
||||||
if (wait_ret)
|
if (wait_ret)
|
||||||
return -ERESTARTSYS;
|
return -ERESTARTSYS;
|
||||||
|
|
||||||
dev_dbg(&dev->pdev->dev, "woke up from sleep\n");
|
dev_dbg(&dev->pdev->dev, "woke up from sleep\n");
|
||||||
|
|
||||||
/* Locking again the Mutex */
|
|
||||||
mutex_lock(&dev->device_lock);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user