From owner-svn-src-all@FreeBSD.ORG Thu Mar 13 16:51:41 2014 Return-Path: Delivered-To: svn-src-all@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 2B6799B0; Thu, 13 Mar 2014 16:51:41 +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 18A771AB; Thu, 13 Mar 2014 16:51:41 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s2DGpeot086496; Thu, 13 Mar 2014 16:51:40 GMT (envelope-from eadler@svn.freebsd.org) Received: (from eadler@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s2DGpe6o086495; Thu, 13 Mar 2014 16:51:40 GMT (envelope-from eadler@svn.freebsd.org) Message-Id: <201403131651.s2DGpe6o086495@svn.freebsd.org> From: Eitan Adler Date: Thu, 13 Mar 2014 16:51:40 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263112 - 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-all@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 13 Mar 2014 16:51:41 -0000 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);