diff options
author | 2019-07-29 11:03:05 +0800 | |
---|---|---|
committer | 2019-09-04 09:21:19 +0300 | |
commit | 0e7bf23e496770323b08a95633f3247e60b3edca (patch) | |
tree | b9442e599f0ca272fcb26c50d230ea21bd4eaa00 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ath9k: dynack: set ackto to max timeout in ath_dynack_reset (diff) | |
download | wireguard-linux-0e7bf23e496770323b08a95633f3247e60b3edca.tar.xz wireguard-linux-0e7bf23e496770323b08a95633f3247e60b3edca.zip |
ath6kl: Fix a possible null-pointer dereference in ath6kl_htc_mbox_create()
In ath6kl_htc_mbox_create(), when kzalloc() on line 2855 fails,
target->dev is assigned to NULL, and ath6kl_htc_mbox_cleanup(target) is
called on line 2885.
In ath6kl_htc_mbox_cleanup(), target->dev is used on line 2895:
ath6kl_hif_cleanup_scatter(target->dev->ar);
Thus, a null-pointer dereference may occur.
To fix this bug, kfree(target) is called and NULL is returned when
kzalloc() on line 2855 fails.
This bug is found by a static analysis tool STCheck written by us.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions