diff options
author | Donald Dutile <ddutile@redhat.com> | 2009-08-20 22:51:34 +0200 |
---|---|---|
committer | David Woodhouse <David.Woodhouse@intel.com> | 2009-08-24 09:56:26 +0200 |
commit | 94a91b5051a77d8a71d4f11a3240f0d9c51b6cf2 (patch) | |
tree | 04d81ea79520cbd662024ee23cd3f834dd950ed0 /Kbuild | |
parent | intel-iommu: Mark functions with __init (diff) | |
download | linux-94a91b5051a77d8a71d4f11a3240f0d9c51b6cf2.tar.xz linux-94a91b5051a77d8a71d4f11a3240f0d9c51b6cf2.zip |
intel-iommu: iommu init error path bug fixes
The kcalloc() failure path in iommu_init_domains() calls
free_dmar_iommu(), which assumes that ->domains, ->domain_ids,
and ->lock have been properly initialized.
Add checks in free_[dmar]_iommu to not use ->domains,->domain_ids
if not alloced. Move the lock init to prior to the kcalloc()'s,
so it is valid in free_context_table() when free_dmar_iommu() invokes
it at the end.
Patch based on iommu-2.6,
commit 132032274a594ee9ffb6b9c9e2e9698149a09ea9
Signed-off-by: Donald Dutile <ddutile@redhat.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
Diffstat (limited to 'Kbuild')
0 files changed, 0 insertions, 0 deletions