]> git.kernelconcepts.de Git - karo-tx-linux.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)
commit60b61a6f42f36e4fbfbc0139b7e86ce1494d2d9b
tree2f9db61076813c5cc36e66b1a046a1c90cd69b42
parentb4cc0efea4f0bfa2477c56af406cfcf3d3e58680
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