nl80211: NULL pointer check for link before use
bss->flink could be NULL when wpa_driver_nl80211_del_beacon() is called
if wpa_driver_nl80211_drv_init() fails early through the 'failed' label
and jumps to wpa_driver_nl80211_deinit() with bss->flink unset.
Fixes: 47269be36e
("nl80211: Refactor i802_bss to support multiple links")
Signed-off-by: Jintao Lin <jintaolin@chromium.org>
This commit is contained in:
parent
3e2758b19a
commit
015f6a5a0c
1 changed files with 1 additions and 1 deletions
|
@ -3083,7 +3083,7 @@ static int wpa_driver_nl80211_del_beacon(struct i802_bss *bss,
|
|||
struct wpa_driver_nl80211_data *drv = bss->drv;
|
||||
struct i802_link *link = nl80211_get_link(bss, link_id);
|
||||
|
||||
if (!link->beacon_set)
|
||||
if (!link || !link->beacon_set)
|
||||
return 0;
|
||||
|
||||
wpa_printf(MSG_DEBUG, "nl80211: Remove beacon (ifindex=%d)",
|
||||
|
|
Loading…
Reference in a new issue