aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStoyan Gaydarov <[email protected]>2009-08-06 15:07:28 -0700
committerLinus Torvalds <[email protected]>2009-08-07 10:39:55 -0700
commit2020002a878403a6858868d85a43623f74859dba (patch)
treef01b5993e9237ded24937d62b71bbfcfa1b719d7
parent6502fbfaf81b09b3f474bb7b3796257e9450273e (diff)
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 <[email protected]> Acked-by: Evgeniy Polyakov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
-rw-r--r--drivers/w1/masters/omap_hdq.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/w1/masters/omap_hdq.c b/drivers/w1/masters/omap_hdq.c
index a7e3b706b9d3..0d92969404c3 100644
--- a/drivers/w1/masters/omap_hdq.c
+++ b/drivers/w1/masters/omap_hdq.c
@@ -687,6 +687,7 @@ static int omap_hdq_remove(struct platform_device *pdev)
if (hdq_data->hdq_usecount) {
dev_dbg(&pdev->dev, "removed when use count is not zero\n");
+ mutex_unlock(&hdq_data->hdq_mutex);
return -EBUSY;
}