]> git.baikalelectronics.ru Git - kernel.git/commit
module: move sysfs exposure to end of load_module
authorRusty Russell <rusty@rustcorp.com.au>
Sat, 5 Jun 2010 17:17:36 +0000 (11:17 -0600)
committerRusty Russell <rusty@rustcorp.com.au>
Sat, 5 Jun 2010 01:47:36 +0000 (11:17 +0930)
commit0222badefb912246ede3a21af1e4f665552c1453
tree6883bbc3b2032d9604374513ccfd496dd63e76ba
parentcc91c9c81a0bb77fa9e8342b5405c614bb9f81c5
module: move sysfs exposure to end of load_module

This means a little extra work, but is more logical: we don't put
anything in sysfs until we're about to put the module into the
global list an parse its parameters.

This also gives us a logical place to put duplicate module detection
in the next patch.

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