diff options
author | Pan Bian <bianpan2016@163.com> | 2018-11-29 18:25:19 +0800 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-12-13 16:53:42 +0200 |
commit | 1dcd9429212b98bea87fc6ec92fb50bf5953eb47 (patch) | |
tree | 535b65cf3d29d0291cb2c53d90ac9cb3f846c0b5 /drivers/hwtracing/intel_th/acpi.c | |
parent | 074b145a05835e9f93a52323a4770b70b4b782fd (diff) |
mwifiex: fix potential NULL dereference and use after free
There are two defects: (1) passing a NULL bss to
mwifiex_save_hidden_ssid_channels will result in NULL dereference,
(2) using bss after dropping the reference to it via cfg80211_put_bss.
To fix them, the patch moves the buggy code to the branch that bss is
not NULL and puts it before cfg80211_put_bss.
Signed-off-by: Pan Bian <bianpan2016@163.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/hwtracing/intel_th/acpi.c')
0 files changed, 0 insertions, 0 deletions