3
0
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:
Andrew Zaborowski 2019-11-11 13:34:17 +01:00 committed by Denis Kenzior
parent 083143ed05
commit 95d4eea68f

View File

@ -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;