]> git.baikalelectronics.ru Git - kernel.git/commit
Bug Fix arch/ia64/kernel/pci-dma.c: fix recursive dma_supported() call in iommu_dma_s...
authorFenghua Yu <[fenghua.yu@intel.com]>
Tue, 11 Aug 2009 21:52:10 +0000 (14:52 -0700)
committerFenghua Yu <fenghua.yu@intel.com>
Tue, 11 Aug 2009 21:52:10 +0000 (14:52 -0700)
commitcc51d496e4b36896f012f818421e8b63ff843ffa
tree29b8afd81fc022d01eb81ea26a663aefaaacdc2f
parent47e19315241d5936678419133d92b5941d723431
Bug Fix arch/ia64/kernel/pci-dma.c: fix recursive dma_supported() call in iommu_dma_supported()

In commit b3a2d161f29bc4c55b5de28c2beba90031bbc5df,
dma_ops->dma_supported = iommu_dma_supported;

This dma_ops->dma_supported is first called in platform_dma_init() during kernel
boot. Then dma_ops->dma_supported will be called recursively in
iommu_dma_supported.

Kernel can not boot because kernel can not get out of iommu_dma_supported until
it runs out of stack memory.

Signed-off-by: Fenghua Yu <fenghua.yu@intel.com>
arch/ia64/kernel/pci-dma.c