diff options
author | Edward Adam Davis <eadavis@qq.com> | 2023-12-26 10:16:09 +0300 |
---|---|---|
committer | Christian Brauner <brauner@kernel.org> | 2023-12-28 13:56:52 +0300 |
commit | dd8f87f21dc3da2eaf46e7401173f935b90b13a8 (patch) | |
tree | 65641ddd6a00a6e462d8fbd9849bbb0465444b6d /fs/reiserfs/stree.c | |
parent | 2137e1564267001b25143d21bc619189c1f74bc6 (diff) | |
download | linux-dd8f87f21dc3da2eaf46e7401173f935b90b13a8.tar.xz |
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: <syzbot+b3b14fb9f8a14c5d0267@syzkaller.appspotmail.com>
Signed-off-by: Edward Adam Davis <eadavis@qq.com>
Link: https://lore.kernel.org/r/tencent_9EA7E746DE92DBC66049A62EDF6ED64CA706@qq.com
Signed-off-by: Christian Brauner <brauner@kernel.org>
Diffstat (limited to 'fs/reiserfs/stree.c')
-rw-r--r-- | fs/reiserfs/stree.c | 2 |
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; |