Re: [PATCH][next] ASoC: codecs: lpass-rx-macro: Fix uninitialized variable ec_tx

2021-02-23 Thread Mark Brown
On Mon, 15 Feb 2021 16:33:13 +, Colin King wrote: > There is potential read of the uninitialized variable ec_tx if the call > to snd_soc_component_read fails or returns an unrecognized w->name. To > avoid this corner case, initialize ec_tx to -1 so that it is caught > later when ec_tx is bounds

[PATCH][next] ASoC: codecs: lpass-rx-macro: Fix uninitialized variable ec_tx

2021-02-15 Thread Colin King
From: Colin Ian King There is potential read of the uninitialized variable ec_tx if the call to snd_soc_component_read fails or returns an unrecognized w->name. To avoid this corner case, initialize ec_tx to -1 so that it is caught later when ec_tx is bounds checked. Addresses-Coverity: ("Uninit