]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r333492:
authorken <ken@FreeBSD.org>
Mon, 21 May 2018 18:59:34 +0000 (18:59 +0000)
committerken <ken@FreeBSD.org>
Mon, 21 May 2018 18:59:34 +0000 (18:59 +0000)
commit6a00cfee2564c1cbf584df239e34d72f29fe0721
tree308182c4426e0d3f26ef1157b76340d5bcce8a77
parent862f8fd267233acc2fae9af0c4a8bf065900315e
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)
sys/dev/ocs_fc/ocs_os.c