summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorVijendar Mukunda <Vijendar.Mukunda@amd.com>2026-11-07 23:22:26 +0530
committerMark Brown <broonie@kernel.org>2026-11-09 14:57:18 +0000
commit41e06aaef9c000c1bb52d8a6f73ae66c9bd36d83 (patch)
tree0d35c8266160b1ae3c8c680425d3b1dd4fe80909 /scripts/objdiff
parentc1a50397202986cbd5cd20f4dec2ce992a02c85f (diff)
ASoC: amd: ps: 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 acp63_irq_handler() before dereferencing ->pdev[0] and ->pdev[1], and in 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: e1cb350610ce ("ASoC: amd: ps: handle SoundWire interrupts in acp pci driver") Signed-off-by: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Link: https://patch.msgid.link/20261107175339.3547918-2-Vijendar.Mukunda@amd.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions