Mark Johnston ce9eea6425 Correct the condition under which we allocate a terminator node.
We will have last_block < blocks if the block count is divisible
by BLIST_BMAP_RADIX, but a terminator node is still needed if the
tree isn't balanced.  In this case we were overruning the blist
array by 16 bytes during initialization.

While here, add a check for the invalid blocks == 0 case.

PR:		231116
Reviewed by:	alc, kib (previous version), Doug Moore <dougm@rice.edu>
Approved by:	re (gjb)
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D17020
2018-09-05 19:05:30 +00:00
..
2018-08-28 18:50:34 +00:00
2018-09-03 14:43:16 +00:00
2018-08-24 00:02:00 +00:00
2018-09-04 19:28:46 +00:00
2018-08-24 15:00:36 +00:00
2018-08-23 13:21:01 +00:00
2018-07-15 00:31:17 +00:00
2018-07-19 10:14:52 +00:00