projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59e2480
)
bcachefs: Fix unitialized use of a value
author
Brett Holman
<bpholman5@gmail.com>
Sun, 6 Jun 2021 15:29:42 +0000
(09:29 -0600)
committer
Kent Overstreet
<kent.overstreet@linux.dev>
Sun, 22 Oct 2023 21:09:05 +0000
(17:09 -0400)
Signed-off-by: Brett Holman <bpholman5@gmail.com>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
fs/bcachefs/replicas.c
patch
|
blob
|
history
diff --git
a/fs/bcachefs/replicas.c
b/fs/bcachefs/replicas.c
index 5a8b0a7b719790e88658dfd064d0ecebb22e0c6b..64fdf53a630a6b67be33959ebdb0839137c10db4 100644
(file)
--- a/
fs/bcachefs/replicas.c
+++ b/
fs/bcachefs/replicas.c
@@
-442,6
+442,8
@@
static int __bch2_mark_bkey_replicas(struct bch_fs *c, struct bkey_s_c k,
unsigned i;
int ret;
+ memset(&search, 0, sizeof(search));
+
for (i = 0; i < cached.nr; i++) {
bch2_replicas_entry_cached(&search.e, cached.devs[i]);