From c98996ded8fe8d9446321867a06ae5d4d2bcd892 Mon Sep 17 00:00:00 2001 From: Brian Behlendorf Date: Fri, 13 Mar 2009 10:51:11 -0700 Subject: [PATCH] Explicitly cast to prevent 'void *' dereference. --- module/zfs/dbuf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/dbuf.c b/module/zfs/dbuf.c index b17f884e06..cb337671c0 100644 --- a/module/zfs/dbuf.c +++ b/module/zfs/dbuf.c @@ -366,7 +366,7 @@ dbuf_verify(dmu_buf_impl_t *db) int i; for (i = 0; i < db->db.db_size >> 3; i++) { - ASSERT(db->db.db_data[i] == 0); + ASSERT(((uint64_t *)db->db.db_data)[i] == 0); } } }