]> git.baikalelectronics.ru Git - 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)
commit763a720a6f064d9cbdab41afc4fec5a1a8d142e5
treedd510bc10a9dbf66038a01b537be197418e56b7a
parentbcbeb09c0660902726eab4ede44d219215028492
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