diff options
author | Douglas Anderson <dianders@chromium.org> | 2017-04-14 19:40:31 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-04-14 20:11:37 +0300 |
commit | 0a78b248c3324fbbba49f74e2c93e0f436583788 (patch) | |
tree | 90310071ac5889c401d7cf5b922aa44ba8f029c0 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | d0c02e14e48be94dd312ff6edffab9f9e6acd480 (diff) | |
download | linux-0a78b248c3324fbbba49f74e2c93e0f436583788.tar.xz |
ASoC: rt5514: Avoid relying on uninitialized "val" value
In rt5514_i2c_probe() if the regmap_read(RT5514_VENDOR_ID2) fails then
"val" may be left as uninitialized. Current code relies on "val" not
being RT5514_DEVICE_ID, but that's potentially unsafe.
Let's check for errors from regmap_read() and also explicitly init the
value do we're not passing a possibly uninitialized int to printk.
Signed-off-by: Douglas Anderson <dianders@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions