module: make module_address_lookup safe
authorRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Jan 2008 22:13:22 +0000 (17:13 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 29 Jan 2008 06:13:23 +0000 (17:13 +1100)
module_address_lookup releases preemption then returns a pointer into
the module space.  The only user (kallsyms) copies the result, so just
do that under the preempt disable.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/module.h
kernel/kallsyms.c
kernel/module.c

Simple merge
Simple merge
diff --cc kernel/module.c
Simple merge