projects
/
platform
/
kernel
/
linux-starfive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init()
[platform/kernel/linux-starfive.git]
/
drivers
/
md
/
bcache
/
writeback.c
diff --git
a/drivers/md/bcache/writeback.c
b/drivers/md/bcache/writeback.c
index
75b7119
..
d138a2d
100644
(file)
--- a/
drivers/md/bcache/writeback.c
+++ b/
drivers/md/bcache/writeback.c
@@
-950,6
+950,7
@@
void bch_sectors_dirty_init(struct bcache_device *d)
return;
}
+ memset(&state, 0, sizeof(struct bch_dirty_init_state));
state.c = c;
state.d = d;
state.total_threads = bch_btre_dirty_init_thread_nr();