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 */
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to