AMD IOMMU: fix find_iommu_from_bdf_cap()
authorJan Beulich <jbeulich@suse.com>
Mon, 15 Oct 2012 10:59:14 +0000 (12:59 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 15 Oct 2012 10:59:14 +0000 (12:59 +0200)
commitde17be7fe7db66e7f9107c68e74f43d7a6b1da4a
tree9d1a7afa18c48cf1bc4a60a6ee9b6cb2a501fa29
parent1c4a5b37b55c56e49135e65728137f54288d1fe6
AMD IOMMU: fix find_iommu_from_bdf_cap()

The arguments passed for the "cap_offset" parameter get read from 16-
bit fields, so the parameter should also have (at least) 16 bits.

While fixing this I also noticed that this was yet another case where
PCI segment information wasn't properly propagated, so a respective
first parameter gets added to the function at once.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Wei Wang <wei.wang2@amd.com>
xen/drivers/passthrough/amd/iommu_acpi.c