On Wed, 2014-03-26 at 22:19 +0100, Jakub Jelinek wrote:
> Hi!
> 
> The sys_futex0 caller expects return values as returned by raw syscalls,
> i.e. value >= 0 success, negative value are errors -errorval.
> But, the syscall function returns value >= 0 on success, and -1 on error,
> with errno set to errorval.  This means if e.g. futex syscall fails with
> EAGAIN, and EPERM is 1, we get GTM program terminated because we think
> futex returned -EPERM.
> 
> Fixed thusly, bootstrapped/regtested on s390x-linux, ok for trunk/4.8?

Looks good to me.  Thanks.


Reply via email to