From: Joerg Roedel Date: Thu, 2 Jul 2009 16:32:05 +0000 (+0200) Subject: amd-iommu: set evt_buf_size correctly X-Git-Tag: v2.6.31-rc3~67^2~1^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=1bc6f83813441d15a74dfa97966fb68fa1bdec76;p=karo-tx-linux.git amd-iommu: set evt_buf_size correctly 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 --- diff --git a/arch/x86/kernel/amd_iommu_init.c b/arch/x86/kernel/amd_iommu_init.c index ec72c7779d6b..c1b17e97252e 100644 --- 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; }