mirror of
https://github.com/torvalds/linux.git
synced 2026-11-06 21:58:01 +01:00
sh: maple: Use the matching IRQ cookie when invoking free_irq()
The Maple DMA and VBLANK handlers are registered with
&maple_unsupported_device as their dev_id. Passing NULL to free_irq()
cannot find either action, so the handlers remain registered and the
IRQ core warns.
Use the same cookie when freeing both handlers on the error paths.
Fixes: b3c69e2481 ("maple: more robust device detection.")
Signed-off-by: Runyu Xiao <runyu.xiao@seu.edu.cn>
Assisted-by: LLM
Cc: stable@vger.kernel.org
Tested-by: Florian Fuchs <fuchsfl@gmail.com>
Reviewed-By: Florian Fuchs <fuchsfl@gmail.com>
Reviewed-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
Signed-off-by: John Paul Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
This commit is contained in:
parent
3b8386ffc0
commit
e3ef44e77b
|
|
@ -863,10 +863,10 @@ static int __init maple_bus_init(void)
|
|||
kmem_cache_destroy(maple_queue_cache);
|
||||
|
||||
cleanup_bothirqs:
|
||||
free_irq(HW_EVENT_VSYNC, 0);
|
||||
free_irq(HW_EVENT_VSYNC, &maple_unsupported_device);
|
||||
|
||||
cleanup_irq:
|
||||
free_irq(HW_EVENT_MAPLE_DMA, 0);
|
||||
free_irq(HW_EVENT_MAPLE_DMA, &maple_unsupported_device);
|
||||
|
||||
cleanup_dma:
|
||||
free_pages((unsigned long) maple_sendbuf, MAPLE_DMA_PAGES);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user