Skip to content

Commit

Permalink
reiserfs: fix uninit-value in comp_keys
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
ea1davis authored and brauner committed Dec 28, 2023
1 parent 2137e15 commit dd8f87f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fs/reiserfs/stree.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit dd8f87f

Please sign in to comment.