mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 13:02:44 +01:00
hotspot: fix double free between hostpot and knownnetworks
The module framework was changed to call the module exit functions in the reverse order as the init functions. This uncovered/caused known networks to try and free the network_info structures after hotspot had already freed them. Since known networks clean up the network_info's anyways, we don't actually need hotspot to do any cleanup.
This commit is contained in:
parent
a3817ba015
commit
81ac94fd01
@ -524,7 +524,7 @@ static void hotspot_exit(void)
|
|||||||
{
|
{
|
||||||
l_dir_watch_destroy(hs20_dir_watch);
|
l_dir_watch_destroy(hs20_dir_watch);
|
||||||
|
|
||||||
l_queue_destroy(hs20_settings, hs20_config_free);
|
l_queue_destroy(hs20_settings, NULL);
|
||||||
hs20_settings = NULL;
|
hs20_settings = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user