Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2020002a authored by Stoyan Gaydarov's avatar Stoyan Gaydarov Committed by Linus Torvalds
Browse files

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: default avatarStoyan Gaydarov <sgayda2@uiuc.edu>
Acked-by: default avatarEvgeniy Polyakov <johnpol@2ka.mipt.ru>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 6502fbfa
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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;
	}
	}