]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit - kernel/module.c
module: Ensure a module's state is set accordingly during module coming cleanup code
authorAaron Tomlin <atomlin@redhat.com>
Thu, 20 Oct 2016 16:18:12 +0000 (17:18 +0100)
committerJessica Yu <jeyu@redhat.com>
Sat, 26 Nov 2016 19:18:02 +0000 (11:18 -0800)
commit885a78d4a5b3ad2d7c41d1819b001d7957f442cd
tree166dbe72b7c6f98c03098af203e808c25560edad
parentc714965f580accdb6715cb28285eeccea18dafdb
module: Ensure a module's state is set accordingly during module coming cleanup code

In load_module() in the event of an error, for e.g. unknown module
parameter(s) specified we go to perform some module coming clean up
operations. At this point the module is still in a "formed" state
when it is actually going away.

This patch updates the module's state accordingly to ensure anyone on the
module_notify_list waiting for a module going away notification will be
notified accordingly.

Signed-off-by: Aaron Tomlin <atomlin@redhat.com>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Reviewed-by: Miroslav Benes <mbenes@suse.cz>
Link: http://lkml.kernel.org/r/1476980293-19062-2-git-send-email-atomlin@redhat.com
Signed-off-by: Jessica Yu <jeyu@redhat.com>
kernel/module.c