]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
The recent change to initialization of blists (r324420) relied on '-1'
authorAlan Cox <alc@FreeBSD.org>
Mon, 9 Oct 2017 18:19:06 +0000 (18:19 +0000)
committerAlan Cox <alc@FreeBSD.org>
Mon, 9 Oct 2017 18:19:06 +0000 (18:19 +0000)
commit03ca213761a72d877d9816dec2c2d0ccc7dae09b
tree33fc805eeba8c72d1b5d9e39abd89fabb980b214
parent497e8a6bf0e7f2cee9dbe94cbd45fe91a051ff56
The recent change to initialization of blists (r324420) relied on '-1'
appearing only where the code explicitly set it, but since much of the
data was not initialized, '-1' appeared other places too, and led to
panics.  Clear the allocated data before initializing nonzero values by
allocating with M_ZERO.

Submitted by: Doug Moore <dougm@rice.edu>
Reported by: Oleg V. Nauman <oleg@theweb.org.ua>, cy
Tested by: Oleg V. Nauman <oleg@theweb.org.ua>
MFC after: 1 week
X-MFC with: r324420
Differential Revision: https://reviews.freebsd.org/D12627
sys/kern/subr_blist.c