ASoC: sigmadsp: uninitialized variable in sigmadsp_activate_ctrl()
Subsystems (4)
PATCH 1/1 ASoC: sigmadsp: uninitialized variable in sigmadsp_activate_ctrl()
The "changed" variable should be set to false at the start.
Fixes a35daac77a03 ('ASoC: sigmadsp: Add support for fw v2')
Signed-off-by Dan Carpenter <[email protected]>
sound/soc/codecs/sigmadsp.c +2 -1
@@ -661,7 +661,8 @@ static void sigmadsp_activate_ctrl(struct sigmadsp *sigmadsp,struct snd_card *card = sigmadsp->component->card->snd_card;struct snd_kcontrol_volatile *vd;struct snd_ctl_elem_id id; -bool active, changed; +bool active; +bool changed = false; active =sigmadsp_samplerate_valid (ctrl->samplerates, samplerate_mask);
Quoted 4 lines · Dan Carpenter
The "changed" variable should be set to false at the start.
Fixes a35daac77a03 ('ASoC: sigmadsp: Add support for fw v2')Signed-off-by Dan Carpenter <[email protected]>
Thanks.
Quoted 1 line · Dan Carpenter
The "changed" variable should be set to false at the start.
Applied, thanks.