Skip to content

RFC ASoC: atmel: ac97c: Fix IRQ handling sequences

Manish Baing linux-arm-kernel linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2ASoC: sound: atmel_ac97c: Fix IRQ handler null pointer dereferencesound/atmel/ac97c.c+6 -50 replies
2/2ASoC: atmel: ac97c: Fix use-after-free on driver teardownsound/atmel/ac97c.c+5 -40 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] ASoC: atmel: ac97c: Fix IRQ handling sequences

This series addresses two hardware initialization and teardown issues in the atmel_ac97c driver flagged by the Sashiko AI bot.
The original report can be found here:
https://sashiko.dev/#/patchset/[email protected]?part=1

- Patch 1 moves request_irq() to the end of probe to prevent a null pointer dereference if an interrupt fires early.
- Patch 2 reorders the teardown sequence to free the IRQ before disabling clocks and unmapping memory, preventing a use-after-free.

I am submitting this as an RFC because I do not have the physical hardware to test these changes, However, my manual analysis indicates these are valid bugs, and the series compiles cleanly with W=1.

Manish Baing (2):
ASoC: sound: atmel_ac97c: Fix IRQ handler null pointer dereference
ASoC: atmel: ac97c: Fix use-after-free on driver teardown

 sound/atmel/ac97c.c | 20 +++++++++++---------
 1 file changed, 11 insertions(+), 9 deletions(-)
Signature · 1 line
2.43.0