diff options
| author | Denis Efremov <efremov@linux.com> | 2019-09-27 01:56:04 +0300 |
|---|---|---|
| committer | Kalle Valo <kvalo@codeaurora.org> | 2019-10-01 14:18:43 +0300 |
| commit | 80e84f36412e0c5172447b6947068dca0d04ee82 (patch) | |
| tree | fe33e5083c24ee541d42681841316a6d3c90e9a4 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | d98ddae85a4a57124f87960047b1b6419312147f (diff) | |
| download | linux-80e84f36412e0c5172447b6947068dca0d04ee82.tar.xz | |
ath9k_hw: fix uninitialized variable data
Currently, data variable in ar9003_hw_thermo_cal_apply() could be
uninitialized if ar9300_otp_read_word() will fail to read the value.
Initialize data variable with 0 to prevent an undefined behavior. This
will be enough to handle error case when ar9300_otp_read_word() fails.
Fixes: 80fe43f2bbd5 ("ath9k_hw: Read and configure thermocal for AR9462")
Cc: Rajkumar Manoharan <rmanohar@qca.qualcomm.com>
Cc: John W. Linville <linville@tuxdriver.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: stable@vger.kernel.org
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
