Re: [PATCH] ASoC: rt274: Variable "buf" in function rt274_jack_detect() could be uninitialized
From: Mark Brown
Date: Mon Jan 07 2019 - 11:59:26 EST
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.
Attachment:
signature.asc
Description: PGP signature