Skip to content

fixup! ASoC: SOF: debug_dsp_ops: Add op to test DSP power state changes#5289

Merged
ranj063 merged 1 commit intothesofproject:topic/sof-devfrom
bardliao:fixup-debug_dsp_ops
Jan 14, 2025
Merged

fixup! ASoC: SOF: debug_dsp_ops: Add op to test DSP power state changes#5289
ranj063 merged 1 commit intothesofproject:topic/sof-devfrom
bardliao:fixup-debug_dsp_ops

Conversation

@bardliao
Copy link
Collaborator

@bardliao bardliao commented Jan 14, 2025

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).

Fixes: #5291

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 <yung-chuan.liao@linux.intel.com>
@ranj063 ranj063 merged commit 9d8dbf8 into thesofproject:topic/sof-dev Jan 14, 2025
6 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI check error: use of uninitialized value ‘string’

3 participants