1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-02-13 03:01:56 +00:00

miracle-wifid: fix crashing on link removing issue

wifid crashes when link removing (either unplug usb wlan dongle or
unload kernel module) due to double

Change-Id: I9480a095659752343e505eb41b380d1ab3cd322a
This commit is contained in:
Derek Dai 2017-04-14 16:07:44 +08:00
parent 7f1cfabdd4
commit 0b230176f2

View file

@ -213,8 +213,10 @@ static void supplicant_group_free(struct supplicant_group *g)
}
LINK_FOREACH_PEER(p, g->s->l)
if (p->sp->g == g)
if (p->sp->g == g) {
supplicant_peer_drop_group(p->sp);
return;
}
shl_dlist_unlink(&g->list);