]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit80a3d1bb410e000e176931a076cdf19a1e89a955
tree6883bbc3b2032d9604374513ccfd496dd63e76ba
parentc8e21ced08b39ef8dfe7236fb2a923a95f645262
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