Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 13 Mar 2014 16:51:40 +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: r263112 - head/sys/dev/hwpmc
Message-ID:  <201403131651.s2DGpe6o086495@svn.freebsd.org>

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

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

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

Modified: head/sys/dev/hwpmc/hwpmc_uncore.c
==============================================================================
--- head/sys/dev/hwpmc/hwpmc_uncore.c	Thu Mar 13 16:51:01 2014	(r263111)
+++ head/sys/dev/hwpmc/hwpmc_uncore.c	Thu Mar 13 16:51:40 2014	(r263112)
@@ -1212,7 +1212,7 @@ pmc_uncore_initialize(struct pmc_mdep *m
 	PMCDBG(MDP,INI,1,"uncore-init pmcmask=0x%jx ucfri=%d", uncore_pmcmask,
 	    uncore_ucf_ri);
 
-	uncore_pcpu = malloc(sizeof(struct uncore_cpu **) * maxcpu, M_PMC,
+	uncore_pcpu = malloc(sizeof(*uncore_pcpu) * maxcpu, M_PMC,
 	    M_ZERO | M_WAITOK);
 
 	return (0);



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