Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360213
b: refs/heads/master
c: 0e803ba
h: refs/heads/master
i:
  360211: acde1ab
v: v3
  • Loading branch information
Heiko Carstens authored and Al Viro committed Mar 2, 2013
1 parent ef09f2f commit 62bf2ee
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: dfbb83d32c99dc50198638adf067a435c0fc338f
refs/heads/master: 0e803bafbb7d1b8a9031104f1a982a01b45da4c6
10 changes: 5 additions & 5 deletions trunk/fs/timerfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,10 +383,10 @@ SYSCALL_DEFINE2(timerfd_gettime, int, ufd, struct itimerspec __user *, otmr)
return copy_to_user(otmr, &kotmr, sizeof(kotmr)) ? -EFAULT: 0;
}

#ifdef COMPAT
#ifdef CONFIG_COMPAT
COMPAT_SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags,
const struct itimerspec __user *, utmr,
struct itimerspec __user *, otmr)
const struct compat_itimerspec __user *, utmr,
struct compat_itimerspec __user *, otmr)
{
struct itimerspec new, old;
int ret;
Expand All @@ -402,12 +402,12 @@ COMPAT_SYSCALL_DEFINE4(timerfd_settime, int, ufd, int, flags,
}

COMPAT_SYSCALL_DEFINE2(timerfd_gettime, int, ufd,
struct itimerspec __user *, otmr)
struct compat_itimerspec __user *, otmr)
{
struct itimerspec kotmr;
int ret = do_timerfd_gettime(ufd, &kotmr);
if (ret)
return ret;
return put_compat_itimerspec(otmr, &t) ? -EFAULT: 0;
return put_compat_itimerspec(otmr, &kotmr) ? -EFAULT: 0;
}
#endif

0 comments on commit 62bf2ee

Please sign in to comment.