aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/da7219.c
diff options
context:
space:
mode:
authorYizhuo <yzhai003@ucr.edu>2019-01-07 12:12:32 -0800
committerMark Brown <broonie@kernel.org>2019-01-08 13:05:48 +0000
commit4a8191aa9e057ea38279ef9e809265ba3966be40 (patch)
tree7baa4428e79a474db5997f01e8d3b1ed4b226f74 /sound/soc/codecs/da7219.c
parent7b57085a33ce55e28616f04fd9877ba2ca7e79de (diff)
downloadlinux-4a8191aa9e057ea38279ef9e809265ba3966be40.tar.gz
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: Yizhuo <yzhai003@ucr.edu> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/da7219.c')
0 files changed, 0 insertions, 0 deletions