Home
last modified time | relevance | path

Searched hist:"7 d6b902ea0e02b2a25c480edf471cbaa4ebe6b3c" (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/md/bcache/
H A Dwriteback.cdiff 7d6b902ea0e02b2a25c480edf471cbaa4ebe6b3c Fri May 27 17:28:16 CEST 2022 Coly Li <colyli@suse.de> bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init()

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>
H A Dbtree.cdiff 7d6b902ea0e02b2a25c480edf471cbaa4ebe6b3c Fri May 27 17:28:16 CEST 2022 Coly Li <colyli@suse.de> bcache: memset on stack variables in bch_btree_check() and bch_sectors_dirty_init()

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>