Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2014 16:51:02 +0000 (UTC)
From:      Eitan Adler <eadler@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r263111 - head/sys/dev/hwpmc
Message-ID:  <201403131651.s2DGp26X086397@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: eadler
Date: Thu Mar 13 16:51:01 2014
New Revision: 263111
URL: http://svnweb.freebsd.org/changeset/base/263111

Log:
  Fix pointer type in call to malloc
  
  Submitted by:	Meyer, Conrad conrad.meyer@isilon.com

Modified:
  head/sys/dev/hwpmc/hwpmc_core.c

Modified: head/sys/dev/hwpmc/hwpmc_core.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_core.c	Thu Mar 13 16:19:36 2014	(r263110)
+++ head/sys/dev/hwpmc/hwpmc_core.c	Thu Mar 13 16:51:01 2014	(r263111)
@@ -2679,7 +2679,7 @@ pmc_core_initialize(struct pmc_mdep *md,
 	PMCDBG(MDP,INI,1,"core-init pmcmask=0x%jx iafri=%d", core_pmcmask,
 	    core_iaf_ri);
 
-	core_pcpu = malloc(sizeof(struct core_cpu **) * maxcpu, M_PMC,
+	core_pcpu = malloc(sizeof(*core_pcpu) * maxcpu, M_PMC,
 	    M_ZERO | M_WAITOK);
 
 	/*



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403131651.s2DGp26X086397>