]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
ASoC: rt5651: Variable "ret" in function rt5651_i2c_probe() could be uninitialized
authorYizhuo <yzhai003@ucr.edu>
Fri, 25 Jan 2019 18:45:37 +0000 (10:45 -0800)
committerMark Brown <broonie@kernel.org>
Mon, 28 Jan 2019 12:34:39 +0000 (12:34 +0000)
commite20bfeb0b7d808bc05e7c4cb1f492cd31d837da0
treedd510bc10a9dbf66038a01b537be197418e56b7a
parent5e484ec1758b95e6420787fc17f0e8c5e152c264
ASoC: rt5651: Variable "ret" in function rt5651_i2c_probe() could be uninitialized

In function rt5651_i2c_probe(), local variable "ret" could
be uninitialized if function regmap_read() returns -EINVAL.
However, this value is used in if statement. This is
potentially unsafe.

Signed-off-by: Yizhuo <yzhai003@ucr.edu>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c