Commit 09b207f9 authored by Jan Kiszka's avatar Jan Kiszka
Browse files

cobalt/posix/signal: Fix return code on siginfo copy errors

The put_siginfo functions return a non-zero value on error. We have to
convert that into proper -EFAULT before returning.
Signed-off-by: Jan Kiszka's avatarJan Kiszka <>
parent f5a67a24
......@@ -376,7 +376,7 @@ out:
/* no more ref. to sigp beyond this point. */
return ret ?: sig;
return ret ? -EFAULT : sig;
xnlock_put_irqrestore(&nklock, s);
Supports Markdown
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