]> git.baikalelectronics.ru Git - kernel.git/commit
kmod: correct documentation of return status of request_module
authorNeilBrown <neilb@suse.com>
Wed, 9 Sep 2015 22:38:10 +0000 (15:38 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 10 Sep 2015 20:29:01 +0000 (13:29 -0700)
commit5ab2589ec77ae0995df6d57d9f24436e254d4535
tree2f9db61076813c5cc36e66b1a046a1c90cd69b42
parenta3a93aeced5752ff1ac10e0e1cff0a33a2e61914
kmod: correct documentation of return status of request_module

If request_module() successfully runs modprobe, but modprobe exits with a
non-zero status, then the return value from request_module() will be that
(positive) error status.  So the return from request_module can be:

 negative errno
 zero for success
 positive exit code.

Signed-off-by: NeilBrown <neilb@suse.com>
Cc: Goldwyn Rodrigues <rgoldwyn@suse.de>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Tejun Heo <tj@kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
kernel/kmod.c