projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7a6a3a0
)
amd-iommu: set evt_buf_size correctly
author
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 2 Jul 2009 16:32:05 +0000
(18:32 +0200)
committer
Joerg Roedel
<joerg.roedel@amd.com>
Thu, 2 Jul 2009 16:32:05 +0000
(18:32 +0200)
The setting of this variable got lost during the suspend/resume
implementation. But keeping this variable zero causes a divide-by-zero
error in the interrupt handler. This patch fixes this.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
arch/x86/kernel/amd_iommu_init.c
patch
|
blob
|
history
diff --git
a/arch/x86/kernel/amd_iommu_init.c
b/arch/x86/kernel/amd_iommu_init.c
index ec72c7779d6b3d25d53c8c236097815a1b58fe8a..c1b17e97252e08f89f2221c2228642e0ff3dad81 100644
(file)
--- a/
arch/x86/kernel/amd_iommu_init.c
+++ b/
arch/x86/kernel/amd_iommu_init.c
@@
-472,6
+472,8
@@
static u8 * __init alloc_event_buffer(struct amd_iommu *iommu)
if (iommu->evt_buf == NULL)
return NULL;
+ iommu->evt_buf_size = EVT_BUFFER_SIZE;
+
return iommu->evt_buf;
}