Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 62983
b: refs/heads/master
c: 0982840
h: refs/heads/master
i:
  62981: d0f2551
  62979: 3fa8f9d
  62975: cafae32
v: v3
  • Loading branch information
Davide Libenzi authored and Linus Torvalds committed Jul 26, 2007
1 parent bf57335 commit 497d0a0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: a1cdd4a64f6ce15a1e81759ef99eed3a91f9acbe
refs/heads/master: 098284020c47c1212d211e39ae2b41c21182e056
6 changes: 3 additions & 3 deletions trunk/fs/timerfd.c
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ static ssize_t timerfd_read(struct file *file, char __user *buf, size_t count,
{
struct timerfd_ctx *ctx = file->private_data;
ssize_t res;
u32 ticks = 0;
u64 ticks = 0;
DECLARE_WAITQUEUE(wait, current);

if (count < sizeof(ticks))
Expand Down Expand Up @@ -130,7 +130,7 @@ static ssize_t timerfd_read(struct file *file, char __user *buf, size_t count,
* callback to avoid DoS attacks specifying a very
* short timer period.
*/
ticks = (u32)
ticks = (u64)
hrtimer_forward(&ctx->tmr,
hrtimer_cb_get_time(&ctx->tmr),
ctx->tintv);
Expand All @@ -140,7 +140,7 @@ static ssize_t timerfd_read(struct file *file, char __user *buf, size_t count,
}
spin_unlock_irq(&ctx->wqh.lock);
if (ticks)
res = put_user(ticks, buf) ? -EFAULT: sizeof(ticks);
res = put_user(ticks, (u64 __user *) buf) ? -EFAULT: sizeof(ticks);
return res;
}

Expand Down

0 comments on commit 497d0a0

Please sign in to comment.