x86, 32-bit: Fix swiotlb boot crash
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Tue, 10 Nov 2009 12:35:17 +0000 (21:35 +0900)
committerIngo Molnar <mingo@elte.hu>
Tue, 10 Nov 2009 13:11:32 +0000 (14:11 +0100)
commit72d03802b8b5c841ab1da82bff0652628cbadf60
treecd0329e3b9d6dec8585e3bfed976c9e7eee79fbf
parent75f1cdf1dda92cae037ec848ae63690d91913eac
x86, 32-bit: Fix swiotlb boot crash

Ingo Molnar reported this boot crash:

[    8.655620] pata_amd 0000:00:06.0: version 0.4.1
[    8.660286] BUG: unable to handle kernel NULL pointer dereference at 00000034
[    8.663572] IP: [<c100617b>] dma_supported+0x3b/0xa4
[    8.663572] *pde = 00000000

Initialize dma_ops properly in the 32-bit case.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-dma.c