Skip to content
Unverified Commit 4a8191aa authored by Yizhuo's avatar Yizhuo Committed by Mark Brown
Browse files

ASoC: rt274: Variable "buf" in function rt274_jack_detect() could be uninitialized



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.

Signed-off-by: default avatarYizhuo <yzhai003@ucr.edu>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 7b57085a
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment