summaryrefslogtreecommitdiffstats
path: root/arch/powerpc/boot/dts/redwood.dts
diff options
context:
space:
mode:
authorMilton Miller <miltonm@bga.com>2011-05-24 22:34:18 +0200
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-05-26 05:38:59 +0200
commit4dd602900196bcc00505485e2a363caec4f3fd93 (patch)
tree4876c904feadff354e9da9c21ce7e6b6d77a458b /arch/powerpc/boot/dts/redwood.dts
parentpowerpc/irq: Protect irq_radix_revmap_lookup against irq_free_virt (diff)
downloadlinux-4dd602900196bcc00505485e2a363caec4f3fd93.tar.xz
linux-4dd602900196bcc00505485e2a363caec4f3fd93.zip
powerpc: Fix irq_free_virt by adjusting bounds before loop
Instead of looping over each irq and checking against the irq array bounds, adjust the bounds before looping. The old code will not free any irq if the irq + count is above irq_virq_count because the test in the loop is testing irq + count instead of irq + i. This code checks the limits to avoid unsigned integer overflows. Signed-off-by: Milton Miller <miltonm@bga.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/boot/dts/redwood.dts')
0 files changed, 0 insertions, 0 deletions