diff options
| author | Pan Bian <bianpan2016@163.com> | 2018-11-29 18:25:19 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-12-05 15:26:43 +0100 |
| commit | fe0bde850b042ef2719d32c790a0eb872d969a9a (patch) | |
| tree | 5867b0a71b25ab32343cf80bd3ff9c024d47f205 /fs/xfs/xfs_rtalloc.c | |
| parent | a7d82370253ca12f8c32f6992f8e27e1fbce7468 (diff) | |
mwifiex: fix potential NULL dereference and use after free
[ Upstream commit 1dcd9429212b98bea87fc6ec92fb50bf5953eb47 ]
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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'fs/xfs/xfs_rtalloc.c')
0 files changed, 0 insertions, 0 deletions
