Zero struct for zdb dump_block_stats
Accidentally dropped the zeroing of this structure in the gcc-missing-braces topic branch which was causing a fall positive space leak in ztest. Ensure the structure is zero'ed before use.
This commit is contained in:
parent
696ec7fb61
commit
5b02d6c084
|
@ -2179,6 +2179,7 @@ dump_block_stats(spa_t *spa)
|
||||||
* it's not part of any space map) is a double allocation,
|
* it's not part of any space map) is a double allocation,
|
||||||
* reference to a freed block, or an unclaimed log block.
|
* reference to a freed block, or an unclaimed log block.
|
||||||
*/
|
*/
|
||||||
|
bzero(&zcb, sizeof(zdb_cb_t));
|
||||||
zdb_leak_init(spa, &zcb);
|
zdb_leak_init(spa, &zcb);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in New Issue