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

Unified Diff: dm-bht.c

Issue 6726018: verity: remove BUG_ON alignment check (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 71e3b04b2acf3161495a8ce8b16d2901cbc71202..dd57e12a0d467c26c3807248db84a290efa3e1b8 100644
--- a/dm-bht.c
+++ b/dm-bht.c
@@ -105,7 +105,11 @@ static int dm_bht_compute_hash(struct dm_bht *bht, const void *block,
* offset_into_page + length < page_size
* For now just check that block is page-aligned.
*/
- BUG_ON(!IS_ALIGNED((uintptr_t)block, PAGE_SIZE));
+ /*
+ * TODO(msb): Re-enable once user-space code is modified to use
+ * aligned buffers.
+ * BUG_ON(!IS_ALIGNED((uintptr_t)block, PAGE_SIZE));
+ */
sg_init_table(&sg, 1);
sg_set_buf(&sg, block, PAGE_SIZE);
« 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