HomeFreeBSD

MFC r333492:

Description

MFC r333492:


r333492 | ken | 2018-05-11 08:50:26 -0600 (Fri, 11 May 2018) | 10 lines

Clear out the entire structure, not just the size of a pointer to it.

sys/dev/ocs/ocs_os.c:
	In ocs_thread_create(), use sizeof(*thread) (instead of
	sizeof(thread)) as the size argument to memset so that we clear
	out the entire thread structure instead of just a few bytes of it.

Submitted by:	jtl

------------------------------------------------------------------------

Approved by: re (marius, gjb)

Details

Provenance
kenAuthored on
Parents
rS333990: Add missed barrier for pm_gen/pm_active interaction.
Branches
Unknown
Tags
Unknown