]> git.baikalelectronics.ru Git - kernel.git/commit
module: simplify load_module.
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 22 Oct 2008 15:00:13 +0000 (10:00 -0500)
committerRusty Russell <rusty@rustcorp.com.au>
Tue, 21 Oct 2008 23:00:15 +0000 (10:00 +1100)
commitd48ddf237841a853da3a9a8d404f6f2ecf6b69b1
tree97966d9ac8f9621073fad39a88ed37765c959a9d
parentfe00b7ac5d354d23437846c1b3ee6193c64191cb
module: simplify load_module.

Linus' recent catch of stack overflow in load_module lead me to look
at the code.  A couple of helpers to get a section address and get
objects from a section can help clean things up a little.

(And in case you're wondering, the stack size also dropped from 328 to
284 bytes).

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