svn commit: r263113 - head/sys/x86/x86
John Baldwin
jhb at FreeBSD.org
Thu Mar 13 18:11:42 UTC 2014
Author: jhb
Date: Thu Mar 13 18:11:42 2014
New Revision: 263113
URL: http://svnweb.freebsd.org/changeset/base/263113
Log:
Correct type for malloc().
Submitted by: "Conrad Meyer" <conrad.meyer at isilon.com>
Modified:
head/sys/x86/x86/mca.c
Modified: head/sys/x86/x86/mca.c
==============================================================================
--- head/sys/x86/x86/mca.c Thu Mar 13 16:51:40 2014 (r263112)
+++ head/sys/x86/x86/mca.c Thu Mar 13 18:11:42 2014 (r263113)
@@ -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);
More information about the svn-src-all
mailing list