diff options
author | Steven Rostedt <rostedt@goodmis.org> | 2015-05-09 03:06:23 +0930 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-06-06 08:20:57 -0700 |
commit | acc27112293c72a1bc249e2913f52a2c0e078fd0 (patch) | |
tree | b294a0bbaac550498eca6477b2e308c39759b9ae /sound | |
parent | 06b31fdcf73f8dd0e7e30ce59800948b94e088a9 (diff) | |
download | lwn-acc27112293c72a1bc249e2913f52a2c0e078fd0.tar.gz lwn-acc27112293c72a1bc249e2913f52a2c0e078fd0.zip |
module: Call module notifier on failure after complete_formation()
commit 37815bf866ab6722a47550f8d25ad3f1a16a680c upstream.
The module notifier call chain for MODULE_STATE_COMING was moved up before
the parsing of args, into the complete_formation() call. But if the module failed
to load after that, the notifier call chain for MODULE_STATE_GOING was
never called and that prevented the users of those call chains from
cleaning up anything that was allocated.
Link: http://lkml.kernel.org/r/554C52B9.9060700@gmail.com
Reported-by: Pontus Fuchs <pontus.fuchs@gmail.com>
Fixes: 4982223e51e8 "module: set nx before marking module MODULE_STATE_COMING"
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound')
0 files changed, 0 insertions, 0 deletions