Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 29691
b: refs/heads/master
c: 0928d68
h: refs/heads/master
i:
  29689: 7f66410
  29687: fb0d8d2
v: v3
  • Loading branch information
Jan Engelhardt authored and Linus Torvalds committed Jun 25, 2006
1 parent 3f9402f commit 7fec03a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 2e6113908fe76a06295cb243f1f2f0eea055b0c2
refs/heads/master: 0928d68056fa25456830b1de9f0ee89bc37447cd
5 changes: 3 additions & 2 deletions trunk/fs/openpromfs/inode.c
Original file line number Diff line number Diff line change
Expand Up @@ -448,10 +448,11 @@ static ssize_t property_write(struct file *filp, const char __user *buf,
*q |= simple_strtoul (tmp, NULL, 16);
buf += last_cnt;
} else {
char tchars[17]; /* XXX yuck... */
char tchars[2 * sizeof(long) + 1];

if (copy_from_user(tchars, buf, 16))
if (copy_from_user(tchars, buf, sizeof(tchars) - 1))
return -EFAULT;
tchars[sizeof(tchars) - 1] = '\0';
*q = simple_strtoul (tchars, NULL, 16);
buf += 9;
}
Expand Down

0 comments on commit 7fec03a

Please sign in to comment.