From: Steven Rostedt Date: Fri, 8 May 2015 17:36:23 +0000 (+0930) Subject: module: Call module notifier on failure after complete_formation() X-Git-Tag: omap-for-v4.2/wakeirq-drivers-v2^2~2^2~41^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=37815bf866ab6722a47550f8d25ad3f1a16a680c;p=pandora-kernel.git module: Call module notifier on failure after complete_formation() 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 Fixes: 4982223e51e8 "module: set nx before marking module MODULE_STATE_COMING" Cc: stable@vger.kernel.org # 3.16+ Signed-off-by: Steven Rostedt Signed-off-by: Rusty Russell --- Reading git-diff-tree failed