]> git.baikalelectronics.ru Git - kernel.git/commit
iommu/amd: fix type bug in flush code
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 27 Jun 2012 09:09:18 +0000 (12:09 +0300)
committerJoerg Roedel <joerg.roedel@amd.com>
Mon, 2 Jul 2012 10:11:40 +0000 (12:11 +0200)
commitc3a1bdafe2048e7ab6907970c2366cbb640422fb
tree41c458290c5eeb7ccad0357ad8bd5804b50c396b
parent21831d5f7b5f5570ccebac9b281598b4382dbec4
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>
drivers/iommu/amd_iommu.c
drivers/iommu/amd_iommu_init.c
drivers/iommu/amd_iommu_types.h