summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2026-11-07 23:22:27 +0530
committerMark Brown <broonie@kernel.org>2026-11-09 14:57:18 +0000
commit34ea81a7f284a13d825279fdede36b7f793f9936 (patch)
tree0f2dca9f8c19416000f2530a6ab6bb7323c65f98 /scripts/objdiff
parent41e06aaef9c000c1bb52d8a6f73ae66c9bd36d83 (diff)
ASoC: SOF: amd: guard adata->sdw dereferences with NULL check in IRQ handler
The ACP external IRQ handler is registered before sdw_amd_probe() assigns adata->sdw, so a stray interrupt in the probe window could reach the adata->sdw->pdev[i] dereference with adata->sdw still NULL. The same window exists on the teardown side: after sdw_amd_exit() frees the context but before adata->sdw is cleared by the caller. Add NULL checks for adata->sdw in acp_irq_handler() before dereferencing ->pdev[0] and ->pdev[1], and in amd_sof_handle_acp70_sdw_wake_event() for the same reason. The interrupt-status register write that acknowledges the IRQ is kept outside the guard so the hardware bit is always cleared regardless of whether the SoundWire context is live. Fixes: 96eb81851012 ("ASoC: SOF: amd: add interrupt handling for SoundWire manager devices") Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Fixes: 1f41bf67bfe3 ("ASoC: SOF: amd: add soundwire wake irq handling") Link: https://patch.msgid.link/20261107175339.3547918-3-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions