lkml.org 
[lkml]   [2008]   [Sep]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 3/3] x86/iommu: use __GFP_ZERO instead of memset for GART

* Joerg Roedel <joerg.roedel@amd.com> wrote:

> #ifdef CONFIG_IOMMU_LEAK
> if (leak_trace) {
> - iommu_leak_tab = (void *)__get_free_pages(GFP_KERNEL,
> + iommu_leak_tab = (void *)__get_free_pages(GFP_KERNEL|__GFP_ZERO,
> get_order(iommu_pages*sizeof(void *)));
> - if (iommu_leak_tab)
> - memset(iommu_leak_tab, 0, iommu_pages * 8);
> else
> printk(KERN_DEBUG
> "PCI-DMA: Cannot allocate leak trace area\n");

hm, that looks broken.

Ingo


\
 
 \ /
  Last update: 2008-09-25 12:23    [from the cache]
©2003-2011 Jasper Spaans