]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitafc2a07c1ebd537612296088aafc52e1e66015aa
tree215394779cca168f57e48fda3cf8c91f451a42c8
parent6ad2281da374ba3aa93424dbc4d80cece6c2f5b4
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: 1ed3fad3337c ("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