]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] irq-devres: fix failure path of devm_request_irq()
authorTejun Heo <htejun@gmail.com>
Sat, 7 Apr 2007 05:59:41 +0000 (14:59 +0900)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Sat, 7 Apr 2007 17:05:21 +0000 (10:05 -0700)
commitf2bbb871ed3162e05428ac4f0e2a20c3cfc17b59
tree06af277806d645ce7c970c64c56613b682f071e4
parent1031ef1095193647a4928a811e29b9a01894681b
[PATCH] irq-devres: fix failure path of devm_request_irq()

devres should be deallocated with devres_free() not kfree().  This bug
corrupts slab on IRQ request failure.  Fix it.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Greg KH <gregkh@suse.de>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/irq/devres.c