]> git.baikalelectronics.ru Git - kernel.git/commit
module: return error when mod_sysfs_init() failed
authorAkinobu Mita <akinobu.mita@gmail.com>
Wed, 17 Oct 2007 06:30:27 +0000 (23:30 -0700)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Wed, 17 Oct 2007 15:43:01 +0000 (08:43 -0700)
commit9512b8f7b050b381bf5416d9fa1fa6968871fc7a
tree41d8e470d578636a0e5aeaed2d1e959e0c1a99c7
parentfec1f449c42b839e49711293ebda6a5d21bf82a1
module: return error when mod_sysfs_init() failed

load_module() returns zero when mod_sysfs_init() fails, then the module
loading will succeed accidentally.

This patch makes load_module() return error correctly in that case.

Acked-by: Greg Kroah-Hartman <gregkh@suse.de>
Acked-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/module.c