diff options
| author | Runyu Xiao <runyu.xiao@seu.edu.cn> | 2026-09-29 16:45:40 +0800 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-09-29 17:07:52 +0200 |
| commit | af3d225b639c6f9fb8fd5e1e27f11672d56724b6 (patch) | |
| tree | ef845c842f052a9e045f97d93538578b8c1e39e7 /tools/lib/python/kdoc/parse_data_structs.py | |
| parent | feb8b3ba150a3930b5a4c8704c0027c4e66bf119 (diff) | |
ALSA: sgio2audio: Only free successfully requested IRQs
snd_sgio2audio_create() calls snd_sgio2audio_free() when an IRQ
request fails. The cleanup helper currently walks the complete IRQ table,
including entries whose request_irq() calls have not been attempted yet.
free_irq() then receives an IRQ and dev_id pair that was never registered.
Pass the number of successfully requested IRQs to the cleanup helper on
the request failure path, while retaining the full-table cleanup for
teardown after all requests have succeeded.
Fixes: 862c2c0a61c5 ("ALSA: ALSA driver for SGI O2 audio board")
Cc: stable@vger.kernel.org
Assisted-by: LLM
Signed-off-by: Runyu Xiao <runyu.xiao@seu.edu.cn>
Link: https://patch.msgid.link/20260929084540.2065213-1-runyu.xiao@seu.edu.cn
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions
