From: Justin Husted Date: Mon, 4 Nov 2019 05:50:32 +0000 (-0800) Subject: bcachefs: Fix uninitialized field in hash_check_init() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=6d01598ecd151b22feff9d8bc7f0611adacc5f28;p=linux.git 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 Signed-off-by: Kent Overstreet --- diff --git a/fs/bcachefs/fsck.c b/fs/bcachefs/fsck.c index 5acf1fb645430..3cced2b99f3f1 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,