Skip to content

Commit

Permalink
fixup! ASoC: SOF: debug_dsp_ops: Add op to test DSP power state changes
Browse files Browse the repository at this point in the history
Reported by analyzer-use-of-uninitialized-value
sound/soc/sof/debug-dsp-ops.c:216:19: error: use of uninitialized value
‘string’ [CWE-457] [-Werror=analyzer-use-of-uninitialized-value]

The ‘string’ will not be assigned in the default case of switch
(sdev->dsp_power_state.state) and (sdev->dsp_power_state.substate).

Signed-off-by: Bard Liao <[email protected]>
  • Loading branch information
bardliao authored and ranj063 committed Jan 14, 2025
1 parent 5376d68 commit 9d8dbf8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sound/soc/sof/debug-dsp-ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,8 @@ static ssize_t sof_dsp_ops_tester_dfs_read(struct file *file, char __user *buffe
{
struct snd_sof_dfsentry *dfse = file->private_data;
struct snd_sof_dev *sdev = dfse->sdev;
const char *string = NULL;
struct dentry *dentry;
const char *string;
size_t size_ret;

/* return the FW filename or path */
Expand Down

0 comments on commit 9d8dbf8

Please sign in to comment.