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

Commit 40b058e0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ASoC: wcd9320: Avoid NULL pointer access"

parents da780e2c 778ba288
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7252,6 +7252,11 @@ static int taiko_resume(struct device *dev)
{
	struct platform_device *pdev = to_platform_device(dev);
	struct taiko_priv *taiko = platform_get_drvdata(pdev);

	if (!taiko) {
		dev_err(dev, "%s: taiko private data is NULL\n", __func__);
		return -EINVAL;
	}
	dev_dbg(dev, "%s: system resume\n", __func__);
	/* Notify */
	wcd9xxx_resmgr_notifier_call(&taiko->resmgr, WCD9XXX_EVENT_POST_RESUME);