diff options
| author | Justin Husted | 2019-11-03 21:50:32 -0800 |
|---|---|---|
| committer | Kent Overstreet | 2023-10-22 17:08:31 -0400 |
| commit | 6d01598ecd151b22feff9d8bc7f0611adacc5f28 (patch) | |
| tree | f8b3f972e7214c8fd4a213204713bd800076d7b4 | |
| parent | 7edcfbfefe5c18ea5df6bfdaca405003a0a87c51 (diff) | |
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>
| -rw-r--r-- | fs/bcachefs/fsck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index 5acf1fb64543..3cced2b99f3f 100644 --- a/fs/bcachefs/fsck.c +++ b/fs/bcachefs/fsck.c @@ -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, |
