Files
linux/drivers/net/wireless/ath/ath9k
Denis Efremov f8dc0350d3 ath9k_hw: fix uninitialized variable data
commit 80e84f3641 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: 80fe43f2bb ("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>
2019-12-01 09:17:35 +01:00
..
2018-06-29 14:44:49 +03:00
2017-05-19 10:57:55 +03:00
2017-10-27 16:54:19 +03:00
2018-06-29 14:44:49 +03:00
2018-01-16 16:29:22 +02:00
2017-09-25 10:13:58 +03:00
2018-01-25 07:30:49 +02:00
2018-01-16 16:29:22 +02:00