Commit 0ad1d6f3 authored by Wang Chen's avatar Wang Chen Committed by Greg Kroah-Hartman

kobject: Transmit return value of call_usermodehelper() to caller

kobject_uevent_env() drops the return value of call_usermodehelper().
It will make upper caller, such as dm_send_uevents(), to lose error

BTW, Previously kobject_uevent_env() transmitted return of
call_usermodehelper() to callers, but
commit	5f123fbd
"[PATCH] merge kobject_uevent and kobject_hotplug" removed it.
Signed-off-by: default avatarWang Chen <>
Cc: Kay Sievers <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 83c79b55
......@@ -245,7 +245,8 @@ int kobject_uevent_env(struct kobject *kobj, enum kobject_action action,
if (retval)
goto exit;
call_usermodehelper(argv[0], argv, env->envp, UMH_WAIT_EXEC);
retval = call_usermodehelper(argv[0], argv,
env->envp, UMH_WAIT_EXEC);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment