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)
commit6dd06c9fbe025f542bce4cdb91790c0f91962722
tree5c946eb93f30c64fd435bdd6d1064880ef21557a
parentbb9d3d56e792d2619cc0903df4ac01d86ac1261d
module: make module_address_lookup safe

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