ASoC: amd: acp: Fix NULL pointer deref on acp resume path
authorVenkata Prasad Potturu <venkataprasad.potturu@amd.com>
Fri, 25 Apr 2025 06:01:39 +0000 (11:31 +0530)
committerMark Brown <broonie@kernel.org>
Fri, 25 Apr 2025 12:35:05 +0000 (13:35 +0100)
commitba85883d160515129b58873f74376a89faf21c7c
tree10f9a777480674cd1a2a00e4d3135c6726ab9b14
parentc1b0f5183a4488b6b7790f834ce3a786725b3583
ASoC: amd: acp: Fix NULL pointer deref on acp resume path

update chip data using dev_get_drvdata(dev->parent) instead of
dev_get_platdata(dev).

BUG: kernel NULL pointer dereference, address: 0000000000000010
Call Trace:
 <TASK>
 ? __pfx_platform_pm_resume+0x10/0x10
 platform_pm_resume+0x28/0x60
 dpm_run_callback+0x51/0x1a0
 device_resume+0x1a6/0x2b0
 dpm_resume+0x168/0x230

Fixes: e3933683b25e ("ASoC: amd: acp: Remove redundant acp_dev_data structure")

Signed-off-by: Venkata Prasad Potturu <venkataprasad.potturu@amd.com>
Link: https://patch.msgid.link/20250425060144.1773265-1-venkataprasad.potturu@amd.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp/acp-rembrandt.c
sound/soc/amd/acp/acp-renoir.c
sound/soc/amd/acp/acp63.c
sound/soc/amd/acp/acp70.c