From: Zhu Yanhai <yanhai.zhu@linux.intel.com>
To: linux-btrfs@vger.kernel.org
Subject: Author: Zhu Yanhai <yanhai.zhu@linux.intel.com>
Date: Mon, 10 May 2010 11:54:42 +0800 [thread overview]
Message-ID: <1273463682-4355-1-git-send-email-yanhai.zhu@linux.intel.com> (raw)
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;
}
reply other threads:[~2010-05-10 3:54 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1273463682-4355-1-git-send-email-yanhai.zhu@linux.intel.com \
--to=yanhai.zhu@linux.intel.com \
--cc=linux-btrfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).