diff options
author | John Baldwin <jhb@FreeBSD.org> | 2014-03-13 18:11:42 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2014-03-13 18:11:42 +0000 |
commit | 053cbfe3bd9b00cb845c24b0be47e8d76b0c799c (patch) | |
tree | 1694e1e29195095995eed20ba496c0588fb2a2b9 /sys/x86 | |
parent | c08da1429fcacbb9ebf725efc68ef4bc28f96378 (diff) | |
download | src-053cbfe3bd9b00cb845c24b0be47e8d76b0c799c.tar.gz src-053cbfe3bd9b00cb845c24b0be47e8d76b0c799c.zip |
Correct type for malloc().
Submitted by: "Conrad Meyer" <conrad.meyer@isilon.com>
Notes
Notes:
svn path=/head/; revision=263113
Diffstat (limited to 'sys/x86')
-rw-r--r-- | sys/x86/x86/mca.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/x86/x86/mca.c b/sys/x86/x86/mca.c index 0e246edc555a..8a0d2b12e9c6 100644 --- a/sys/x86/x86/mca.c +++ b/sys/x86/x86/mca.c @@ -700,8 +700,8 @@ cmci_setup(void) { int i; - cmc_state = malloc((mp_maxid + 1) * sizeof(struct cmc_state **), - M_MCA, M_WAITOK); + cmc_state = malloc((mp_maxid + 1) * sizeof(struct cmc_state *), M_MCA, + M_WAITOK); for (i = 0; i <= mp_maxid; i++) cmc_state[i] = malloc(sizeof(struct cmc_state) * mca_banks, M_MCA, M_WAITOK | M_ZERO); |