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:
parent
7f1cfabdd4
commit
0b230176f2
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue