Date: Mon, 24 Apr 2006 20:23:46 GMT From: John Birrell <jb@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 96012 for review Message-ID: <200604242023.k3OKNkKc093606@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=96012 Change 96012 by jb@jb_freebsd2 on 2006/04/24 20:23:32 Initialise dts_epid on all architectures. Bad things happen if we don't do that. Like kaboom. Affected files ... .. //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_state.c#4 edit Differences ... ==== //depot/projects/dtrace/src/sys/cddl/dev/dtrace/dtrace_state.c#4 (text+ko) ==== @@ -207,7 +207,6 @@ } state = ddi_get_soft_state(dtrace_softstate, m); - state->dts_epid = DTRACE_EPIDNONE + 1; #else /* Allocate memory for the state. */ state = malloc(sizeof(dtrace_state_t), M_DTRACE, M_WAITOK | M_ZERO); @@ -215,6 +214,7 @@ /* Save the pointer to the state. */ dev->si_drv1 = state; #endif + state->dts_epid = DTRACE_EPIDNONE + 1; (void) snprintf(c, sizeof (c), "dtrace_aggid_%d", m); state->dts_aggid_arena = vmem_create(c, (void *)1, UINT32_MAX, 1,
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200604242023.k3OKNkKc093606>