linux-btrfs.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] Properly size the leafsize field in the mdrestore_struct struct.
@ 2014-06-12 22:57 Adam Buchbinder
       [not found] ` <CALb+jKqYiQYsHdfOBbOhd4bkR1Y_+Qjv4mvyqq8ZBuLoJkyeag@mail.gmail.com>
  2014-06-18  6:01 ` Satoru Takeuchi
  0 siblings, 2 replies; 6+ messages in thread
From: Adam Buchbinder @ 2014-06-12 22:57 UTC (permalink / raw)
  To: linux-btrfs; +Cc: dave, Adam Buchbinder

It's 32 bits as defined in ctree.h, but the struct had it as 64 bits.

Found using MemorySanitizer.

Signed-off-by: Adam Buchbinder <abuchbinder@google.com>
---
 btrfs-image.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/btrfs-image.c b/btrfs-image.c
index cf1fe2d..98d765a 100644
--- a/btrfs-image.c
+++ b/btrfs-image.c
@@ -128,7 +128,7 @@ struct mdrestore_struct {
 	struct rb_root chunk_tree;
 	struct list_head list;
 	size_t num_items;
-	u64 leafsize;
+	u32 leafsize;
 	u64 devid;
 	u8 uuid[BTRFS_UUID_SIZE];
 	u8 fsid[BTRFS_FSID_SIZE];
-- 
2.0.0.526.g5318336


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2014-06-24  8:50 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-06-12 22:57 [PATCH] Properly size the leafsize field in the mdrestore_struct struct Adam Buchbinder
     [not found] ` <CALb+jKqYiQYsHdfOBbOhd4bkR1Y_+Qjv4mvyqq8ZBuLoJkyeag@mail.gmail.com>
2014-06-13 23:58   ` Adam Buchbinder
2014-06-18  6:01 ` Satoru Takeuchi
2014-06-23 13:44   ` David Sterba
2014-06-23 23:12     ` Satoru Takeuchi
2014-06-24  8:50       ` David Sterba

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).