]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86, pci: iommu fix potential overflow in alloc_iommu()
authorPrarit Bhargava <prarit@redhat.com>
Mon, 21 Jul 2008 14:15:22 +0000 (10:15 -0400)
committerIngo Molnar <mingo@elte.hu>
Wed, 23 Jul 2008 14:45:15 +0000 (16:45 +0200)
commit05d3ed0a1fe3ea05ab9f3b8d32576a0bc2e19660
tree22bd4eb8e45d9a3c07ac7de5de3b30121820c4db
parentc010b2f76c3032e48097a6eef291d8593d5d79a6
x86, pci: iommu fix potential overflow in alloc_iommu()

It is possible that alloc_iommu()'s boundary_size overflows as
dma_get_seg_boundary can return 0xffffffff.  In that case, further usage of
boundary_size triggers a BUG_ON() in the iommu code.

Signed-off-by: Prarit Bhargava <prarit@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/pci-gart_64.c