Bug Fix arch/ia64/kernel/pci-dma.c: fix recursive dma_supported() call in iommu_dma_s...
commitcd20a4e8b2a7f2d10ef23978ccd8c85eff3ac3a2
authorFenghua Yu <[fenghua.yu@intel.com]>
Tue, 11 Aug 2009 21:52:10 +0000 (11 14:52 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 9 Sep 2009 03:33:51 +0000 (8 20:33 -0700)
treeaa072d07d6481091cf94c3b62a87d65a2fc76b8e
parent108c7d85e4f7e2c5e01dd554d7a13bb0dbab7768
Bug Fix arch/ia64/kernel/pci-dma.c: fix recursive dma_supported() call in iommu_dma_supported()

commit 51b89f7a6615eca184aa0b85db5781d931e9c8d1 upstream.

In commit 160c1d8e40866edfeae7d68816b7005d70acf391,
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/ia64/kernel/pci-dma.c