From: Linus Torvalds Date: Thu, 24 May 2007 15:37:14 +0000 (-0700) Subject: Fix crash with irqpoll due to the IRQF_IRQPOLL flag testing X-Git-Tag: v2.6.22-rc3~19 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=92ea77275b5345c1300433f28689493dc4163f24;p=pandora-kernel.git Fix crash with irqpoll due to the IRQF_IRQPOLL flag testing With irqpoll enabled, trying to test the IRQF_IRQPOLL flag in the actions would cause a NULL pointer dereference if no action was installed (for example, the driver might have been unloaded with interrupts still pending). So be a bit more careful about testing the flag by making sure to test for that case. (The actual _change_ is trivial, the patch is more than a one-liner because I rewrote the testing to also be much more readable. Original (discarded) bugfix by Bernhard Walle. Cc: Bernhard Walle Tested-by: Vivek Goyal Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed