Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 110322
b: refs/heads/master
c: 4ab4ba3
h: refs/heads/master
v: v3
  • Loading branch information
Petr Tesarik authored and Ingo Molnar committed Sep 5, 2008
1 parent fac3c4a commit d03c4fb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 28c3cfd5fb998bd3683bebeebbba38baa2101cad
refs/heads/master: 4ab4ba32aa16b012cb0faabf1a27952508fe67f2
3 changes: 2 additions & 1 deletion trunk/include/asm-x86/syscall.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
#define _ASM_SYSCALL_H 1

#include <linux/sched.h>
#include <linux/err.h>

static inline long syscall_get_nr(struct task_struct *task,
struct pt_regs *regs)
Expand Down Expand Up @@ -47,7 +48,7 @@ static inline long syscall_get_error(struct task_struct *task,
*/
error = (long) (int) error;
#endif
return error >= -4095L ? error : 0;
return IS_ERR_VALUE(error) ? error : 0;
}

static inline long syscall_get_return_value(struct task_struct *task,
Expand Down

0 comments on commit d03c4fb

Please sign in to comment.