[PATCH] ARM: 2694/1: [s3c2410/dma] release irq properly to fix kernel oops
authorAlbrecht Dreß <albrecht.dress@com.rmk.(none)>
Fri, 3 Jun 2005 19:52:26 +0000 (20:52 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 3 Jun 2005 19:52:26 +0000 (20:52 +0100)
commit105bb2698b54a838165947199f1c8be5c2e7d9bb
treebd5028148a5299bc1f064bbe631f42b59ba9a21a
parent4ab5c01c7cc28f29d5cf5f2a591cb6f7bbece48e
[PATCH] ARM: 2694/1: [s3c2410/dma] release irq properly to fix kernel oops

Patch from Albrecht Dreß

Problem:
When a module requests a DMA channel via the function s3c2410_dma_request(), this function requests the appropriate irq under the name of the client module. When the client module is unloaded, it calls s3c2410_dma_free() which does not free the irq. Consequently, when e.g. running "cat /proc/interrupts", the irq owner points to freed memory, leading to a kernel oops.
File:
linux/arch/arm/mach-s3c2410/dma.c
Fix:
trivial, below

Signed-off-by: Albrecht Dreß
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mach-s3c2410/dma.c