]> git.karo-electronics.de Git - mv-sheeva.git/commit
genirq: check chip->ack before calling
authorWang Chen <wangchen@cn.fujitsu.com>
Mon, 29 Dec 2008 05:35:11 +0000 (13:35 +0800)
committerIngo Molnar <mingo@elte.hu>
Mon, 29 Dec 2008 11:22:29 +0000 (12:22 +0100)
commitefdc64f0c792ea744bcc9203f35b908e66d42f41
tree014d9895f776d98bf933855e5af2da99d5b34824
parent860cf8894b326e4b89720f520540604834337b72
genirq: check chip->ack before calling

Impact: fix theoretical NULL dereference

The generic irq layer doesn't know whether irq_chip has ack routine on some
architectures or not. Upon that, before calling chip->ack, we should check
that it's not NULL.

Signed-off-by: Wang Chen <wangchen@cn.fujitsu.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/irq/chip.c