mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-18 06:15:12 +00: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:
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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user