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
This commit is contained in:
Ed Maste 2015-11-26 21:05:55 +00:00
parent 9789cd30e5
commit 20e0b5fcce
1 changed files with 1 additions and 1 deletions

View File

@ -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 */