]> www.infradead.org Git - nvme.git/commit
ASoC: amd: acp: add a null check for chip_pdev structure
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>
Mon, 17 Jun 2024 07:28:34 +0000 (12:58 +0530)
committerMark Brown <broonie@kernel.org>
Wed, 19 Jun 2024 17:32:04 +0000 (18:32 +0100)
commit98d919dfee1cc402ca29d45da642852d7c9a2301
tree684fccbf893152f8b92b359e9f9ef546fbbbe5ac
parent60ff540a1d476c2d48b96f7bc8ac8581b820e878
ASoC: amd: acp: add a null check for chip_pdev structure

When acp platform device creation is skipped, chip->chip_pdev value will
remain NULL. Add NULL check for chip->chip_pdev structure in
snd_acp_resume() function to avoid null pointer dereference.

Fixes: 088a40980efb ("ASoC: amd: acp: add pm ops support for acp pci driver")
Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com>
Link: https://msgid.link/r/20240617072844.871468-1-Vijendar.Mukunda@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-pci.c