]> xenbits.xensource.com Git - xen.git/commit
AMD/iommu_detect: don't leak iommu structure on error paths
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 7 Jan 2014 13:57:15 +0000 (14:57 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 7 Jan 2014 13:57:15 +0000 (14:57 +0100)
commit2af30e62c4e562d7a4ec4185fdab20fb29354fd8
tree2ccd06c9b0d5b5ce18ec93490f44e14cc1a03af8
parentb764615c391fdc2648d460245c748a3a319a296e
AMD/iommu_detect: don't leak iommu structure on error paths

Tweak the logic slightly to return the real errors from
get_iommu_{,msi_}capabilities(), which at the moment is no functional change.

Coverity-ID: 1146950
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Suravee Suthikulpanit <suravee.suthikulpanit@amd.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/amd/iommu_detect.c