mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-12-22 21:22:37 +01:00
modules: Unload modules in reverse order from loading
Make sure a module A that is needed by B is not unloaded before B.
This commit is contained in:
parent
083143ed05
commit
95d4eea68f
@ -173,7 +173,7 @@ void iwd_modules_exit()
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
for (i = 0; i < n_modules; i++) {
|
for (i = 0; i < n_modules; i++) {
|
||||||
desc = modules_sorted[i];
|
desc = modules_sorted[n_modules - 1 - i];
|
||||||
if (!desc->active)
|
if (!desc->active)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user