linux/arch/ia64/sn/pci
Jiri Slaby 9b6b93998a [IA64] pci_br, fix infinite loop in find_free_ate()
When
* there is almost out of ates
* one asks for more than one ate
* there are some available at the end of ate array
then the inner for loop will end without incrementing 'index'. This
means the outer loop will start at the same point finding it's available
and runs the inner loop again from the same index. This repeats forever.

Hence make sure we check we were at the end of ate array and return
an error in such case.

Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Cc: Fenghua Yu <fenghua.yu@intel.com>
Found-by: Jeff Mahoney <jeffm@novell.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
2009-09-15 08:40:49 -07:00
..
pcibr [IA64] pci_br, fix infinite loop in find_free_ate() 2009-09-15 08:40:49 -07:00
Makefile ia64: fix sn to add include files using EXTRA_CFLAGS 2007-10-12 21:15:31 +02:00
pci_dma.c page allocator: do not check NUMA node ID when the caller knows the node is valid 2009-06-16 19:47:32 -07:00
tioca_provider.c [IA64] Convert ia64 to use int-ll64.h 2009-06-17 09:33:49 -07:00
tioce_provider.c [IA64] Convert ia64 to use int-ll64.h 2009-06-17 09:33:49 -07:00