Skip to content

Commit

Permalink
amd-iommu: set evt_buf_size correctly
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Joerg Roedel committed Jul 2, 2009
1 parent 7a6a3a0 commit 1bc6f83
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/x86/kernel/amd_iommu_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1bc6f83

Please sign in to comment.