Fix iommu address space allocation
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 1 Jul 2009 17:49:06 +0000 (18:49 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 1 Jul 2009 18:19:29 +0000 (11:19 -0700)
commita15a519ed6e5e644f5a33c213c00b0c1d3cfe683
tree8b266ba5c56de55adac09a60119a411bd9b4e894
parent788d84bba47ea3eb377f7a3ae4fd1ee84b84877b
Fix iommu address space allocation

This fixes kernel.org bug #13584. The IOVA code attempted to optimise
the insertion of new ranges into the rbtree, with the unfortunate result
that some ranges just didn't get inserted into the tree at all. Then
those ranges would be handed out more than once, and things kind of go
downhill from there.

Introduced after 2.6.25 by ddf02886cbe665d67ca750750196ea5bf524b10b
("PCI: iova RB tree setup tweak").

Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Cc: mark gross <mgross@linux.intel.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: stable@kernel.org
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/pci/iova.c