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

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

Merge "ASoC: wcd9330: Avoid NULL pointer access"

parents eb2427cf edf09883
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -7328,6 +7328,11 @@ static int tomtom_resume(struct device *dev)
{
	struct platform_device *pdev = to_platform_device(dev);
	struct tomtom_priv *tomtom = platform_get_drvdata(pdev);

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