mirror of
https://github.com/kdave/btrfs-progs
synced 2025-03-22 19:06:29 +00:00
Make csum_tree_block_size complain about the right thing.
It dereferenced a wrong pointer before. Signed-off-by: Zhu Yanhai <yanhai.zhu@linux.intel.com>
This commit is contained in:
parent
944eea95c0
commit
b227b4dd7c
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user