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

Commit 19aab08d authored by Axel Lin's avatar Axel Lin Committed by Liam Girdwood
Browse files

ASoC: twl6040: Return -ENOMEM if create_singlethread_workqueue fails

parent 56a3536c
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -1629,8 +1629,10 @@ static int twl6040_probe(struct snd_soc_codec *codec)
	priv->naudint = naudint;
	priv->workqueue = create_singlethread_workqueue("twl6040-codec");

	if (!priv->workqueue)
	if (!priv->workqueue) {
		ret = -ENOMEM;
		goto work_err;
	}

	INIT_DELAYED_WORK(&priv->delayed_work, twl6040_accessory_work);