summaryrefslogtreecommitdiff
path: root/drivers/hid/intel-ish-hid
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2018-11-29 18:25:19 +0800
committerKalle Valo <kvalo@codeaurora.org>2018-12-13 16:53:42 +0200
commit1dcd9429212b98bea87fc6ec92fb50bf5953eb47 (patch)
tree535b65cf3d29d0291cb2c53d90ac9cb3f846c0b5 /drivers/hid/intel-ish-hid
parent074b145a05835e9f93a52323a4770b70b4b782fd (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/hid/intel-ish-hid')
0 files changed, 0 insertions, 0 deletions