From owner-svn-src-head@freebsd.org Thu Nov 26 21:05:57 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 25F96A3A02E; Thu, 26 Nov 2015 21:05:57 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id E20871A97; Thu, 26 Nov 2015 21:05:56 +0000 (UTC) (envelope-from emaste@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id tAQL5tkl052759; Thu, 26 Nov 2015 21:05:55 GMT (envelope-from emaste@FreeBSD.org) Received: (from emaste@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id tAQL5ts0052758; Thu, 26 Nov 2015 21:05:55 GMT (envelope-from emaste@FreeBSD.org) Message-Id: <201511262105.tAQL5ts0052758@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: emaste set sender to emaste@FreeBSD.org using -f From: Ed Maste Date: Thu, 26 Nov 2015 21:05:55 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r291373 - head/sys/arm64/arm64 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.20 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, 26 Nov 2015 21:05:57 -0000 Author: emaste Date: Thu Nov 26 21:05:55 2015 New Revision: 291373 URL: https://svnweb.freebsd.org/changeset/base/291373 Log: Correct arm64 gic_v3 sizeof argument No functional change as 'struct resource *' and 'struct resource **' have the same size, but the former is the proper type. PR: 204768 Submitted by: David Binderman Modified: head/sys/arm64/arm64/gic_v3.c Modified: head/sys/arm64/arm64/gic_v3.c ============================================================================== --- head/sys/arm64/arm64/gic_v3.c Thu Nov 26 19:42:10 2015 (r291372) +++ head/sys/arm64/arm64/gic_v3.c Thu Nov 26 21:05:55 2015 (r291373) @@ -155,7 +155,7 @@ gic_v3_attach(device_t dev) * One entry for Distributor and all remaining for Re-Distributor. */ sc->gic_res = malloc( - sizeof(sc->gic_res) * (sc->gic_redists.nregions + 1), + sizeof(*sc->gic_res) * (sc->gic_redists.nregions + 1), M_GIC_V3, M_WAITOK); /* Now allocate corresponding resources */