Commit c6e086e0 authored by Mike Snitzer's avatar Mike Snitzer
Browse files

dm space map common: zero entire ll_disk



Otherwise, memory that is allocated (and potentially not previously
zeroed) will get written to disk as part of the space maps.

Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
parent 84420b1e
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -190,6 +190,8 @@ static int sm_find_free(void *addr, unsigned begin, unsigned end,

static int sm_ll_init(struct ll_disk *ll, struct dm_transaction_manager *tm)
{
	memset(ll, 0, sizeof(struct ll_disk));

	ll->tm = tm;

	ll->bitmap_info.tm = tm;