Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 Nov 2015 21:05:55 +0000 (UTC)
From:      Ed Maste <emaste@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r291373 - head/sys/arm64/arm64
Message-ID:  <201511262105.tAQL5ts0052758@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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 */



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