aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorZheng Wang <[email protected]>2023-06-15 20:12:22 +0800
committerJens Axboe <[email protected]>2023-06-15 07:32:00 -0600
commit80fca8a10b604afad6c14213fdfd816c4eda3ee4 (patch)
tree793f15566eb23b2d44ab32877b562766c5504c6c /scripts/generate_rust_analyzer.py
parent028ddcac477b691dd9205c92f991cc15259d033e (diff)
bcache: Fix __bch_btree_node_alloc to make the failure behavior consistent
In some specific situations, the return value of __bch_btree_node_alloc may be NULL. This may lead to a potential NULL pointer dereference in caller function like a calling chain : btree_split->bch_btree_node_alloc->__bch_btree_node_alloc. Fix it by initializing the return value in __bch_btree_node_alloc. Fixes: cafe56359144 ("bcache: A block layer cache") Cc: [email protected] Signed-off-by: Zheng Wang <[email protected]> Signed-off-by: Coly Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions