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

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

Merge "ASoC: wcd9335: Fix null pointer dereference"

parents 707a2d44 190779c4
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -9481,8 +9481,6 @@ static int tasha_codec_remove(struct snd_soc_codec *codec)
	/* Cleanup MBHC */
	/* Cleanup resmgr */

	devm_kfree(codec->dev, tasha);

	return 0;
}

@@ -9857,6 +9855,7 @@ static int tasha_remove(struct platform_device *pdev)
	tasha = platform_get_drvdata(pdev);

	clk_put(tasha->wcd_ext_clk);
	devm_kfree(&pdev->dev, tasha);
	snd_soc_unregister_codec(&pdev->dev);
	return 0;
}