]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86, AMD IOMMU: initialize dma_ops after sysfs registration
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 14 Aug 2008 17:55:18 +0000 (19:55 +0200)
committerIngo Molnar <mingo@elte.hu>
Fri, 15 Aug 2008 11:56:56 +0000 (13:56 +0200)
commit129d6aba444d1e99d4cbfb9866a4652912426b65
tree3c2c6dee01907dd7203dac640e4c34a66c321224
parent8a456695c5020d6317f9c7af190999e9414b0d3e
x86, AMD IOMMU: initialize dma_ops after sysfs registration

If sysfs registration fails all memory used by IOMMU is freed. This
happens after dma_ops initialization and the functions will access the
freed memory then.

Fix this by initializing dma_ops after the sysfs registration.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/amd_iommu_init.c