Skip to content

Commit

Permalink
drivers/w1/masters/omap_hdq.c: fix missing mutex unlock
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Stoyan Gaydarov authored and Linus Torvalds committed Aug 7, 2009
1 parent 6502fbf commit 2020002
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/w1/masters/omap_hdq.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 2020002

Please sign in to comment.