Re: [PATCH] iio: adc: imx25-gcq: fix uninitialized variable usage

2019-10-01 Thread Jonathan Cameron
On Mon, 30 Sep 2019 12:53:54 -0700 Yizhuo wrote: > In function mx25_gcq_irq(), local variable "stats" could > be uninitialized if function regmap_read() returns -EINVAL. > However, this value is used in if statement, which is > potentially unsafe. The same case applied to the variable > "data" in

[PATCH] iio: adc: imx25-gcq: fix uninitialized variable usage

2019-09-30 Thread Yizhuo
In function mx25_gcq_irq(), local variable "stats" could be uninitialized if function regmap_read() returns -EINVAL. However, this value is used in if statement, which is potentially unsafe. The same case applied to the variable "data" in function mx25_gcq_get_raw_value() in the same file. Signed-