WSL2-Linux-Kernel/drivers/md/bcache
Coly Li 1cdcd496b7 bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init()
commit 7d6b902ea0 upstream.

The local variables check_state (in bch_btree_check()) and state (in
bch_sectors_dirty_init()) should be fully filled by 0, because before
allocating them on stack, they were dynamically allocated by kzalloc().

Signed-off-by: Coly Li <colyli@suse.de>
Link: https://lore.kernel.org/r/20220527152818.27545-2-colyli@suse.de
Signed-off-by: Jens Axboe <axboe@kernel.dk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2022-07-02 16:41:12 +02:00
..
Kconfig
Makefile
alloc.c
bcache.h
bset.c
bset.h
btree.c bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init() 2022-07-02 16:41:12 +02:00
btree.h
closure.c
closure.h
debug.c
debug.h
extents.c
extents.h
features.c
features.h
io.c
journal.c
journal.h
movinggc.c
request.c
request.h
stats.c
stats.h
super.c
sysfs.c
sysfs.h
trace.c
util.c
util.h
writeback.c bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init() 2022-07-02 16:41:12 +02:00
writeback.h