mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +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
1 changed files with 1 additions and 0 deletions
|
@ -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…
Reference in a new issue