X-Git-Url: http://git.agner.ch/gitweb/?a=blobdiff_plain;f=arch%2Fia64%2Fkernel%2Fperfmon.c;h=86e144f321ff5b59e9545eb80d9ec751b4415846;hb=574009c1a895aeeb85eaab29c235d75852b09eb8;hp=aa94f60fa8e7724ee04f83e665e9b762c97540ca;hpb=b361735043e3001eadb1d40916fd1a4fca1a9363;p=linux-drm-fsl-dcu.git diff --git a/arch/ia64/kernel/perfmon.c b/arch/ia64/kernel/perfmon.c index aa94f60fa8e7..86e144f321ff 100644 --- a/arch/ia64/kernel/perfmon.c +++ b/arch/ia64/kernel/perfmon.c @@ -2301,12 +2301,11 @@ pfm_smpl_buffer_alloc(struct task_struct *task, pfm_context_t *ctx, unsigned lon DPRINT(("smpl_buf @%p\n", smpl_buf)); /* allocate vma */ - vma = kmem_cache_alloc(vm_area_cachep, GFP_KERNEL); + vma = kmem_cache_zalloc(vm_area_cachep, GFP_KERNEL); if (!vma) { DPRINT(("Cannot allocate vma\n")); goto error_kmem; } - memset(vma, 0, sizeof(*vma)); /* * partially initialize the vma for the sampling buffer