mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
kernel/kmod.c: document call_usermodehelper_fns() a bit
This function's interface is, uh, subtle. Attempt to apologise for it. Cc: WANG Cong <[email protected]> Cc: Cyrill Gorcunov <[email protected]> Cc: Kees Cook <[email protected]> Cc: Serge Hallyn <[email protected]> Cc: "Eric W. Biederman" <[email protected]> Cc: Alan Cox <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Rusty Russell <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
deb8274a0c
commit
79c743dd1e
1 changed files with 6 additions and 0 deletions
|
|
@ -577,6 +577,12 @@ unlock:
|
|||
return retval;
|
||||
}
|
||||
|
||||
/*
|
||||
* call_usermodehelper_fns() will not run the caller-provided cleanup function
|
||||
* if a memory allocation failure is experienced. So the caller might need to
|
||||
* check the call_usermodehelper_fns() return value: if it is -ENOMEM, perform
|
||||
* the necessaary cleanup within the caller.
|
||||
*/
|
||||
int call_usermodehelper_fns(
|
||||
char *path, char **argv, char **envp, int wait,
|
||||
int (*init)(struct subprocess_info *info, struct cred *new),
|
||||
|
|
|
|||
Loading…
Reference in a new issue