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: Justin Husted <sigstop@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Justin Husted 2019-11-03 21:50:32 -08:00 committed by Kent Overstreet
parent 7edcfbfefe
commit 6d01598ecd

View file

@ -147,6 +147,7 @@ struct hash_check {
static void hash_check_init(struct hash_check *h)
{
h->chain = NULL;
h->chain_end = 0;
}
static void hash_stop_chain(struct btree_trans *trans,