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:
parent
9789cd30e5
commit
20e0b5fcce
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user