aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/kmod.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/kernel/kmod.c b/kernel/kmod.c
index ff2c7cb86d77..2a8351516a0e 100644
--- a/kernel/kmod.c
+++ b/kernel/kmod.c
@@ -577,6 +577,12 @@ unlock:
577 return retval; 577 return retval;
578} 578}
579 579
580/*
581 * call_usermodehelper_fns() will not run the caller-provided cleanup function
582 * if a memory allocation failure is experienced. So the caller might need to
583 * check the call_usermodehelper_fns() return value: if it is -ENOMEM, perform
584 * the necessaary cleanup within the caller.
585 */
580int call_usermodehelper_fns( 586int call_usermodehelper_fns(
581 char *path, char **argv, char **envp, int wait, 587 char *path, char **argv, char **envp, int wait,
582 int (*init)(struct subprocess_info *info, struct cred *new), 588 int (*init)(struct subprocess_info *info, struct cred *new),