From: Edward Adam Davis Date: Tue, 26 Dec 2023 07:16:09 +0000 (+0800) Subject: reiserfs: fix uninit-value in comp_keys X-Git-Tag: v6.8-rc1~215^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=dd8f87f21dc3da2eaf46e7401173f935b90b13a8;p=thirdparty%2Fkernel%2Flinux.git reiserfs: fix uninit-value in comp_keys The cpu_key was not initialized in reiserfs_delete_solid_item(), which triggered this issue. Reported-and-tested-by: Signed-off-by: Edward Adam Davis Link: https://lore.kernel.org/r/tencent_9EA7E746DE92DBC66049A62EDF6ED64CA706@qq.com Signed-off-by: Christian Brauner --- diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c index 2138ee7d271dd..5faf702f8d152 100644 --- a/fs/reiserfs/stree.c +++ b/fs/reiserfs/stree.c @@ -1407,7 +1407,7 @@ void reiserfs_delete_solid_item(struct reiserfs_transaction_handle *th, INITIALIZE_PATH(path); int item_len = 0; int tb_init = 0; - struct cpu_key cpu_key; + struct cpu_key cpu_key = {}; int retval; int quota_cut_bytes = 0;