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.me...@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); _______________________________________________ svn-src-head@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/svn-src-head To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"