From owner-svn-src-head@FreeBSD.ORG Thu Mar 13 16:51:02 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 643AD851; Thu, 13 Mar 2014 16:51:02 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 5149612C; Thu, 13 Mar 2014 16:51:02 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2DGp2e1086398; Thu, 13 Mar 2014 16:51:02 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2DGp26X086397; Thu, 13 Mar 2014 16:51:02 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201403131651.s2DGp26X086397@svn.freebsd.org> From: Eitan Adler Date: Thu, 13 Mar 2014 16:51:02 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263111 - head/sys/dev/hwpmc X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2014 16:51:02 -0000 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); /*