On 24.06.20 20:32, Christian Borntraeger wrote:
[...]>
> So the translations look correct. But your change is actually a sematic change
> if(ret) will only trigger if there is an error
> if (KWIFEXITED(ret)) will always trigger when the process ends. So we will
> always overwrite -ECHILD
> and we did not do it before.
>
So the right fix is
diff --git a/kernel/umh.c b/kernel/umh.c
index f81e8698e36e..a3a3196e84d1 100644
--- a/kernel/umh.c
+++ b/kernel/umh.c
@@ -154,7 +154,7 @@ static void call_usermodehelper_exec_sync(struct
subprocess_info *sub_info)
* the real error code is already in sub_info->retval or
* sub_info->retval is 0 anyway, so don't mess with it then.
*/
- if (KWIFEXITED(ret))
+ if (KWEXITSTATUS(ret))
sub_info->retval = KWEXITSTATUS(ret);
}
I think.
- Re: linux-next: umh: fix processed error when UMH_WA... Christoph Hellwig
- Re: linux-next: umh: fix processed error when U... Christian Borntraeger
- Re: linux-next: umh: fix processed error wh... Luis Chamberlain
- Re: linux-next: umh: fix processed erro... Christian Borntraeger
- Re: linux-next: umh: fix processed ... Christian Borntraeger
- Re: linux-next: umh: fix proce... Christian Borntraeger
- Re: linux-next: umh: fix p... Christian Borntraeger
- Re: linux-next: umh: f... Christian Borntraeger
- Re: linux-next: umh: f... Luis Chamberlain
- Re: linux-next: umh: f... Christian Borntraeger
- Re: linux-next: umh: f... Christoph Hellwig
- Re: linux-next: umh: f... Luis Chamberlain
- Re: linux-next: umh: f... Luis Chamberlain
- Re: linux-next: umh: fix processed error when U... Luis Chamberlain

