commit | 651023ed93ab916efdfd1ced67e4b2d96601a405 | [log] [tgz] |
---|---|---|
author | Yizhuo <yzhai003@ucr.edu> | Thu Jan 03 13:59:12 2019 -0800 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue Mar 05 17:58:46 2019 +0100 |
tree | b893cdbbb1e0a4901268856bc82e32fe6ef91d93 | |
parent | e7b2f9f2bce29fed7c7269d355c94fa6d1d44e99 [diff] |
ASoC: Variable "val" in function rt274_i2c_probe() could be uninitialized [ Upstream commit 8c3590de0a378c2449fc1aec127cc693632458e4 ] Inside function rt274_i2c_probe(), if regmap_read() function returns -EINVAL, then local variable "val" leaves uninitialized but used in if statement. This is potentially unsafe. Signed-off-by: Yizhuo <yzhai003@ucr.edu> Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>