7 Jan
2019
7 Jan
'19
5:58 p.m.
On Fri, Jan 04, 2019 at 12:27:08PM -0800, Yizhuo wrote:
In function rt274_jack_detect(), local variable "buf" could be uninitialized if function regmap_read() returns -EINVAL. However, it will be used to calculate "hp" and "mic" and make their value unpredictable while those value are used in the caller. This is potentially unsafe.
This doesn't apply against current code, please check and resend.