]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
Fix iommu address space allocation
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 1 Jul 2009 17:49:06 +0000 (18:49 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 20 Jul 2009 03:44:59 +0000 (20:44 -0700)
commita6dcca1cfed58986d9d0f5c0092855de946b4a91
tree66647c3689d08b018f5d0abc4d350d3917904d26
parentd6055cd3a734696779d238f9e54174954f22c4c9
Fix iommu address space allocation

commit a15a519ed6e5e644f5a33c213c00b0c1d3cfe683 upstream.

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>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/pci/iova.c