summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorDenis Efremov <efremov@linux.com>2019-09-27 01:56:04 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-11-28 18:26:12 +0100
commit56f7de7b6d37e2e1fae3cba7201610698b099e50 (patch)
treec37fddf4a054ec26d979846acffe3eee7d70bb28 /tools/perf/scripts/python
parentbc7c32ca28cc02bc338ce057197d5eb6c18409f4 (diff)
ath9k_hw: fix uninitialized variable data
commit 80e84f36412e0c5172447b6947068dca0d04ee82 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions