summaryrefslogtreecommitdiffstats
path: root/drivers/w1
diff options
context:
space:
mode:
authorStoyan Gaydarov <sgayda2@uiuc.edu>2009-08-06 15:07:28 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2009-08-07 10:39:55 -0700
commit2020002a878403a6858868d85a43623f74859dba (patch)
treef01b5993e9237ded24937d62b71bbfcfa1b719d7 /drivers/w1
parent6502fbfaf81b09b3f474bb7b3796257e9450273e (diff)
downloadop-kernel-dev-2020002a878403a6858868d85a43623f74859dba.zip
op-kernel-dev-2020002a878403a6858868d85a43623f74859dba.tar.gz
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>
Diffstat (limited to 'drivers/w1')
-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 a7e3b70..0d92969 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;
}
OpenPOWER on IntegriCloud