Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(110)

Unified Diff: dm-bht.c

Issue 6726045: verity: fix valgrind warnings in OddLeafCount (Closed) Base URL: http://git.chromium.org/git/dm-verity.git@master
Patch Set: Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dm-bht.c
diff --git a/dm-bht.c b/dm-bht.c
index 8a5e33f67b82f7763aaef44f72092d530901b21f..83c9b8c09c51a7a53933ade6c404e516d03cb743 100644
--- a/dm-bht.c
+++ b/dm-bht.c
@@ -767,6 +767,7 @@ int dm_bht_store_block(struct dm_bht *bht, unsigned int block_index,
return -ENOMEM;
}
entry->nodes = page_address(node_page);
+ memset(entry->nodes, 0, PAGE_SIZE);
/* TODO(wad) could expose this to the caller to that they
* can transition from unallocated to ready manually.
*/
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698