mirror of
https://github.com/opnsense/src.git
synced 2026-06-12 10:10:24 -04:00
Fix pointer type in call to malloc
Submitted by: Meyer, Conrad conrad.meyer@isilon.com
This commit is contained in:
parent
7793787339
commit
c08da1429f
1 changed files with 1 additions and 1 deletions
|
|
@ -1212,7 +1212,7 @@ pmc_uncore_initialize(struct pmc_mdep *md, int maxcpu)
|
|||
PMCDBG(MDP,INI,1,"uncore-init pmcmask=0x%jx ucfri=%d", uncore_pmcmask,
|
||||
uncore_ucf_ri);
|
||||
|
||||
uncore_pcpu = malloc(sizeof(struct uncore_cpu **) * maxcpu, M_PMC,
|
||||
uncore_pcpu = malloc(sizeof(*uncore_pcpu) * maxcpu, M_PMC,
|
||||
M_ZERO | M_WAITOK);
|
||||
|
||||
return (0);
|
||||
|
|
|
|||
Loading…
Reference in a new issue