mirror of
https://github.com/joel16/android_kernel_sony_msm8994.git
synced 2024-11-24 12:40:24 +00:00
drivers/w1/masters/omap_hdq.c: fix missing mutex unlock
This was found using a semantic patch, more info can be found at: http://www.emn.fr/x-info/coccinelle/ Signed-off-by: Stoyan Gaydarov <sgayda2@uiuc.edu> Acked-by: Evgeniy Polyakov <johnpol@2ka.mipt.ru> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
6502fbfaf8
commit
2020002a87
@ -687,6 +687,7 @@ static int omap_hdq_remove(struct platform_device *pdev)
|
|||||||
|
|
||||||
if (hdq_data->hdq_usecount) {
|
if (hdq_data->hdq_usecount) {
|
||||||
dev_dbg(&pdev->dev, "removed when use count is not zero\n");
|
dev_dbg(&pdev->dev, "removed when use count is not zero\n");
|
||||||
|
mutex_unlock(&hdq_data->hdq_mutex);
|
||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user