diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2012-06-27 13:09:18 +0400 |
---|---|---|
committer | Joerg Roedel <joerg.roedel@amd.com> | 2012-07-02 14:11:40 +0400 |
commit | 3775d4818d72081e2afa2aed2442a2b9ecfc5eab (patch) | |
tree | 41c458290c5eeb7ccad0357ad8bd5804b50c396b /drivers/iommu/amd_iommu_init.c | |
parent | 68ee6d22376411f8ec668413f1b632a34192a807 (diff) | |
download | linux-3775d4818d72081e2afa2aed2442a2b9ecfc5eab.tar.xz |
iommu/amd: fix type bug in flush code
write_file_bool() modifies 32 bits of data, so "amd_iommu_unmap_flush"
needs to be 32 bits as well or we'll corrupt memory. Fortunately it
looks like the data is aligned with a gap after the declaration so this
is harmless in production.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Diffstat (limited to 'drivers/iommu/amd_iommu_init.c')
-rw-r--r-- | drivers/iommu/amd_iommu_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/amd_iommu_init.c b/drivers/iommu/amd_iommu_init.c index c04ddca7f12f..a33612f3206f 100644 --- a/drivers/iommu/amd_iommu_init.c +++ b/drivers/iommu/amd_iommu_init.c @@ -129,7 +129,7 @@ u16 amd_iommu_last_bdf; /* largest PCI device id we have to handle */ LIST_HEAD(amd_iommu_unity_map); /* a list of required unity mappings we find in ACPI */ -bool amd_iommu_unmap_flush; /* if true, flush on every unmap */ +u32 amd_iommu_unmap_flush; /* if true, flush on every unmap */ LIST_HEAD(amd_iommu_list); /* list of all AMD IOMMUs in the system */ |