aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEdward Adam Davis <[email protected]>2023-12-26 15:16:09 +0800
committerChristian Brauner <[email protected]>2023-12-28 11:56:52 +0100
commitdd8f87f21dc3da2eaf46e7401173f935b90b13a8 (patch)
tree65641ddd6a00a6e462d8fbd9849bbb0465444b6d
parent2137e1564267001b25143d21bc619189c1f74bc6 (diff)
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: <[email protected]> Signed-off-by: Edward Adam Davis <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
-rw-r--r--fs/reiserfs/stree.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/reiserfs/stree.c b/fs/reiserfs/stree.c
index 2138ee7d271d..5faf702f8d15 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;