3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-21 22:09:23 +01:00

ap: bail in ap_del_station if AP is going down

Caught by static analysis, if this condition is met the AP is going
down so we cannot continue further accessing the ap object.
This commit is contained in:
James Prestwood 2024-02-29 10:12:17 -08:00 committed by Denis Kenzior
parent 5fcfb430b2
commit c2ad0006eb

View File

@ -455,7 +455,8 @@ static void ap_del_station(struct sta_state *sta, uint16_t reason,
sta->ip_alloc_lease = NULL;
l_dhcp_server_expire_by_mac(ap->netconfig_dhcp, sta->addr);
ap_event_done(ap, prev);
if (ap_event_done(ap, prev))
return;
}
/*