linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Author: Zhu Yanhai <yanhai.zhu@linux.intel.com>
@ 2010-05-10  3:54 Zhu Yanhai
  0 siblings, 0 replies; only message in thread
From: Zhu Yanhai @ 2010-05-10  3:54 UTC (permalink / raw)
  To: linux-btrfs

    Make csum_tree_block_size complain about the right thing.
    
    It dereferenced a wrong pointer before.

diff --git a/disk-io.c b/disk-io.c
index addebe1..c1ed8c8 100644
--- a/disk-io.c
+++ b/disk-io.c
@@ -86,7 +86,7 @@ int csum_tree_block_size(struct extent_buffer *buf, u16 csum_size,
 		if (memcmp_extent_buffer(buf, result, 0, csum_size)) {
 			printk("checksum verify failed on %llu wanted %X "
 			       "found %X\n", (unsigned long long)buf->start,
-			       *((int *)result), *((int *)buf));
+			       *((int *)result), *((char *)buf->data));
 			free(result);
 			return 1;
 		}

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2010-05-10  3:54 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-05-10  3:54 Author: Zhu Yanhai <yanhai.zhu@linux.intel.com> Zhu Yanhai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).