mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-06 04:19:23 -04:00
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:
committed by
Kent Overstreet
parent
7edcfbfefe
commit
6d01598ecd
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user