| Submitter | Riku Voipio |
|---|---|
| Date | Oct. 16, 2009, 2:02 p.m. |
| Message ID | <691372066ca89e4669b41fc55cab6a061d88af6c.1255701565.git.riku.voipio@iki.fi> |
| Download | mbox | patch |
| Permalink | /patch/36228/ |
| State | New |
| Headers | show |
Comments
Patch
diff --git a/linux-user/syscall.c b/linux-user/syscall.c index d07c381..baf00e0 100644 --- a/linux-user/syscall.c +++ b/linux-user/syscall.c @@ -5311,7 +5311,7 @@ abi_long do_syscall(void *cpu_env, int num, abi_long arg1, /* libc does special remapping of the return value of * sys_getpriority() so it's just easiest to call * sys_getpriority() directly rather than through libc. */ - ret = sys_getpriority(arg1, arg2); + ret = get_errno(sys_getpriority(arg1, arg2)); break; case TARGET_NR_setpriority: ret = get_errno(setpriority(arg1, arg2, arg3));