module: Fix load_module() error path
authorPeter Zijlstra <peterz@infradead.org>
Wed, 8 Jul 2015 21:18:06 +0000 (06:48 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 8 Jul 2015 21:27:12 +0000 (06:57 +0930)
commit758556bdc1c8a8dffea0ea9f9df891878cc2468c
tree215394779cca168f57e48fda3cf8c91f451a42c8
parent45820c294fe1b1a9df495d57f40585ef2d069a39
module: Fix load_module() error path

The load_module() error path frees a module but forgot to take it out
of the mod_tree, leaving a dangling entry in the tree, causing havoc.

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Reported-by: Arthur Marsh <arthur.marsh@internode.on.net>
Tested-by: Arthur Marsh <arthur.marsh@internode.on.net>
Fixes: 93c2e105f6bc ("module: Optimize __module_address() using a latched RB-tree")
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c