Skip to contentSkip to conversation

ASoC: wm0010: unlock on error path

PATCH Applied Dan Carpenter 2 participants 2 messages Sep 5, 2012

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: wm0010: unlock on error path

We're holding the wm0010->lock mutex when we goto err_core.

---
This driver is only in linux-next.

sound/soc/codecs/wm0010.c +2 -0
index 5f99148..1c052d6 100644
@@ -663,7 +663,9 @@ abort:
 	wm0010_halt(codec);
 	mutex_unlock(&wm0010->lock);
 	return ret;
+
 err_core:
+	mutex_unlock(&wm0010->lock);
 	regulator_bulk_disable(ARRAY_SIZE(wm0010->core_supplies),
 			       wm0010->core_supplies);
 err: