summaryrefslogtreecommitdiff
path: root/fs/xfs/xfs_rtalloc.c
diff options
context:
space:
mode:
authorPan Bian <bianpan2016@163.com>2018-11-29 18:25:19 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-05 15:26:43 +0100
commitfe0bde850b042ef2719d32c790a0eb872d969a9a (patch)
tree5867b0a71b25ab32343cf80bd3ff9c024d47f205 /fs/xfs/xfs_rtalloc.c
parenta7d82370253ca12f8c32f6992f8e27e1fbce7468 (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