]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
module: refactor load_module part 2
authorLinus Torvalds <torvalds@linux-foundation.org>
Thu, 5 Aug 2010 18:59:02 +0000 (12:59 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 5 Aug 2010 03:29:03 +0000 (12:59 +0930)
commit65b8a9b4d5525348e55cf63a43517610ee8e0970
tree1661d4bc368c768e803a1de4ddb0191bb71acab8
parentf91a13bb99b73961d4e2743a6ff296ac553abc4f
module: refactor load_module part 2

Here's a second one. It's slightly less trivial - since we now have error
cases - and equally untested so it may well be totally broken. But it also
cleans up a bit more, and avoids one of the goto targets, because the
"move_module()" helper now does both allocations or none.

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
kernel/module.c