mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-24 11:29:10 +00: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=263112
@ -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 New Issue
Block a user