]> git.karo-electronics.de Git - mv-sheeva.git/commit
[PATCH] Calgary IOMMU: fix reference counting of Calgary PCI devices
authorMuli Ben-Yehuda <muli@il.ibm.com>
Tue, 26 Sep 2006 08:52:31 +0000 (10:52 +0200)
committerAndi Kleen <andi@basil.nowhere.org>
Tue, 26 Sep 2006 08:52:31 +0000 (10:52 +0200)
commit871b17008e93d7e96f96829ce5f0393c9902d25b
tree03916d1e9c800ed74a50606408481c4b1c984f8e
parentb8f4fe66a560b5ccbb4d4d0d2df356a5d9b98b83
[PATCH] Calgary IOMMU: fix reference counting of Calgary PCI devices

The pci_get_device() API decrements the reference count on the 'from'
parameter when it continues searching. Therefore, take a ref count on
Calgary bus when we initialize them in either translated or
non-translated mode.

Signed-off-by: Muli Ben-Yehuda <muli@il.ibm.com>
Signed-off-by: Jon Mason <jdmason@us.ibm.com>
Signed-off-by: Andi Kleen <ak@suse.de>
arch/x86_64/kernel/pci-calgary.c