Re: [PATCH] ASoC: simple-card: fix possible uninitialized single_cpu local variable

2021-04-07 Thread Mark Brown
On Wed, 7 Apr 2021 11:20:27 +0200, Krzysztof Kozlowski wrote: > The 'single_cpu' local variable is assigned by asoc_simple_parse_dai() > and later used in a asoc_simple_canonicalize_cpu() call, assuming the > entire function did not exit on errors. > > However the first function returns 0 if passe

Re: [PATCH] ASoC: simple-card: fix possible uninitialized single_cpu local variable

2021-04-07 Thread Sameer Pujar
On 4/7/2021 2:50 PM, Krzysztof Kozlowski wrote: The 'single_cpu' local variable is assigned by asoc_simple_parse_dai() and later used in a asoc_simple_canonicalize_cpu() call, assuming the entire function did not exit on errors. However the first function returns 0 if passed device_node is NU

[PATCH] ASoC: simple-card: fix possible uninitialized single_cpu local variable

2021-04-07 Thread Krzysztof Kozlowski
The 'single_cpu' local variable is assigned by asoc_simple_parse_dai() and later used in a asoc_simple_canonicalize_cpu() call, assuming the entire function did not exit on errors. However the first function returns 0 if passed device_node is NULL, thus leaving the variable uninitialized and repor