Date: Thu, 13 Mar 2014 18:11:42 +0000 (UTC) From: John Baldwin <jhb@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r263113 - head/sys/x86/x86 Message-ID: <201403131811.s2DIBgUb019577@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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@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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201403131811.s2DIBgUb019577>