From: Stoyan Gaydarov Date: Thu, 6 Aug 2009 22:07:28 +0000 (-0700) Subject: drivers/w1/masters/omap_hdq.c: fix missing mutex unlock X-Git-Tag: firefly_0821_release~13224 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=2020002a878403a6858868d85a43623f74859dba;p=firefly-linux-kernel-4.4.55.git 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 Acked-by: Evgeniy Polyakov Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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; }