]> rtime.felk.cvut.cz Git - zynq/linux.git/blobdiff - kernel/module.c
Merge tag 'v4.0.8' into xlnx_4.0.8-rt6
[zynq/linux.git] / kernel / module.c
index ec53f594e9c9fcf434a4ffaf48ff2405d7272b73..538794ce3cc7cac6b98b5200c4f160953cb2d1db 100644 (file)
@@ -3366,6 +3366,9 @@ static int load_module(struct load_info *info, const char __user *uargs,
        module_bug_cleanup(mod);
        mutex_unlock(&module_mutex);
 
+       blocking_notifier_call_chain(&module_notify_list,
+                                    MODULE_STATE_GOING, mod);
+
        /* we can't deallocate the module until we clear memory protection */
        unset_module_init_ro_nx(mod);
        unset_module_core_ro_nx(mod);