Skip to content
Commit 4982223e authored by Rusty Russell's avatar Rusty Russell
Browse files

module: set nx before marking module MODULE_STATE_COMING.



We currently set RO & NX on modules very late: after we move them from
MODULE_STATE_UNFORMED to MODULE_STATE_COMING, and after we call
parse_args() (which can exec code in the module).

Much better is to do it in complete_formation() and then call
the notifier.

This means that the notifiers will be called on a module which
is already RO & NX, so that may cause problems (ftrace already
changed so they're unaffected).

Signed-off-by: default avatarRusty Russell <rusty@rustcorp.com.au>
parent de510989
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment