android_kernel_xiaomi_sm8350/arch/powerpc
Michael Ellerman e12514650b [POWERPC] Fix loop logic in irq_alloc_virt()
There's a bug in irq_alloc_virt() if it's asked for more than 1 interrupt,
if it can't find a slot it might look past the end of the irq_map.
To be clear: the bug is that the continue affects the inner for loop,
not the outer one, so i becomes j + 1 and then we continue the inner
loop without checking if i is still <= limit.

This fixes it. No one in the kernel actually calls this with count >
1, so it's not critical.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
2006-09-26 15:24:34 +10:00
..
boot [POWERPC] Start arch/powerpc/boot code reorganization 2006-09-20 15:09:58 +10:00
configs Merge branch 'linux-2.6' 2006-09-14 07:07:18 +10:00
kernel [POWERPC] Fix loop logic in irq_alloc_virt() 2006-09-26 15:24:34 +10:00
lib [POWERPC] make spinlocks work in a combined kernel 2006-09-20 14:01:16 +10:00
math-emu Remove obsolete #include <linux/config.h> 2006-06-30 19:25:36 +02:00
mm Merge branch 'merge' 2006-08-25 14:56:07 +10:00
oprofile [PATCH] oprofile: Fix unnecessary cleverness 2006-06-26 09:58:17 -07:00
platforms [PATCH] more fallout from get_property returning pointer to const 2006-09-23 11:34:43 -07:00
sysdev [POWERPC] Include <asm/mmu.h> in arch/powerpc/sysdev/fsl_soc.h for phys_addr_t. 2006-09-22 15:19:58 +10:00
xmon [POWERPC] print backtrace when entering xmon 2006-09-13 18:39:53 +10:00
Kconfig Merge branch 'linux-2.6' 2006-09-14 07:07:18 +10:00
Kconfig.debug [POWERPC] print backtrace when entering xmon 2006-09-13 18:39:53 +10:00
Makefile [POWERPC] Remove stale 64bit on 32bit kernel code 2006-06-15 19:31:26 +10:00