Commit 6d01598e authored by Justin Husted's avatar Justin Husted Committed by Kent Overstreet

bcachefs: Fix uninitialized field in hash_check_init()

The chain_end field was not initialized before use in
hash_set_chain_start.
Signed-off-by: default avatarJustin Husted <sigstop@gmail.com>
Signed-off-by: default avatarKent Overstreet <kent.overstreet@linux.dev>
parent 7edcfbfe
...@@ -147,6 +147,7 @@ struct hash_check { ...@@ -147,6 +147,7 @@ struct hash_check {
static void hash_check_init(struct hash_check *h) static void hash_check_init(struct hash_check *h)
{ {
h->chain = NULL; h->chain = NULL;
h->chain_end = 0;
} }
static void hash_stop_chain(struct btree_trans *trans, static void hash_stop_chain(struct btree_trans *trans,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment