linux_dsm_epyc7002/drivers/net/wireless/ath
Denis Efremov 315cee426f ar5523: check NULL before memcpy() in ar5523_cmd()
memcpy() call with "idata == NULL && ilen == 0" results in undefined
behavior in ar5523_cmd(). For example, NULL is passed in callchain
"ar5523_stat_work() -> ar5523_cmd_write() -> ar5523_cmd()". This patch
adds ilen check before memcpy() call in ar5523_cmd() to prevent an
undefined behavior.

Cc: Pontus Fuchs <pontus.fuchs@gmail.com>
Cc: Kalle Valo <kvalo@codeaurora.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: David Laight <David.Laight@ACULAB.COM>
Cc: stable@vger.kernel.org
Signed-off-by: Denis Efremov <efremov@linux.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
2019-10-02 20:21:28 +03:00
..
ar5523 ar5523: check NULL before memcpy() in ar5523_cmd() 2019-10-02 20:21:28 +03:00
ath5k ath: Use dev_get_drvdata where possible 2019-09-23 11:25:22 +03:00
ath6kl ath6kl: fix a NULL-ptr-deref bug in ath6kl_usb_alloc_urb_from_pipe() 2019-09-04 09:23:26 +03:00
ath9k ath9k_htc: Discard undersized packets 2019-10-01 14:49:00 +03:00
ath10k ath10k: add support for hardware rfkill 2019-10-02 20:20:33 +03:00
carl9170 carl9170: remove set but not used variable 'udev' 2019-09-04 09:09:34 +03:00
wcn36xx wcn36xx: use dynamic allocation for large variables 2019-09-04 09:22:26 +03:00
wil6210 ath: Use dev_get_drvdata where possible 2019-09-23 11:25:22 +03:00
ath.h ath: Remove unnecessary ath_bcast_mac and use eth_broadcast_addr 2018-03-29 12:10:26 +03:00
debug.c
dfs_pattern_detector.c ath: DFS JP domain W56 fixed pulse type 3 RADAR detection 2019-04-29 17:58:51 +03:00
dfs_pattern_detector.h ath: add support to get the detected radar specifications 2018-05-25 13:15:21 +03:00
dfs_pri_detector.c
dfs_pri_detector.h ath: add support to get the detected radar specifications 2018-05-25 13:15:21 +03:00
hw.c
Kconfig ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
key.c
main.c
Makefile ath: fix SPDX tags 2019-06-26 18:11:06 +03:00
reg.h
regd_common.h ath: regd: add extra US coutry codes 2019-02-07 17:02:19 +02:00
regd.c ath: Fix updating radar flags for coutry code India 2017-04-19 17:09:26 +03:00
regd.h ath: drop duplicated define 2019-04-29 17:55:53 +03:00
spectral_common.h
trace.c
trace.h