diff options
author | Muhammad Usama Anjum <usama.anjum@collabora.com> | 2022-01-21 10:08:11 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@kernel.org> | 2022-01-31 18:46:58 +0300 |
commit | a12f809968dbf46ce2a6bc94463db8d431bb75fc (patch) | |
tree | ab6d558335757e4feae703c1dfce80738fd40bac /net/bluetooth/mgmt_util.c | |
parent | 8ec10f1576d633a65118c0aad9e08b7684acd514 (diff) | |
download | linux-a12f809968dbf46ce2a6bc94463db8d431bb75fc.tar.xz |
rtw88: check for validity before using a pointer
ieee80211_probereq_get() can return NULL. Pointer skb should be checked
for validty before use. If it is not valid, list of skbs needs to be
freed.
Fixes: 10d162b2ed39 ("rtw88: 8822c: add ieee80211_ops::hw_scan")
Signed-off-by: Muhammad Usama Anjum <usama.anjum@collabora.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/20220121070813.9656-2-pkshih@realtek.com
Diffstat (limited to 'net/bluetooth/mgmt_util.c')
0 files changed, 0 insertions, 0 deletions