Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 106431
b: refs/heads/master
c: 5f69283
h: refs/heads/master
i:
  106429: b284e2a
  106427: 984fcf3
  106423: fb7cacf
  106415: 7258af6
  106399: d2254be
  106367: 736060b
v: v3
  • Loading branch information
Harvey Harrison authored and David Woodhouse committed Jul 11, 2008
1 parent 7ab7b28 commit 5f5367d
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 72289824423655e67993c25c91a7a86a34917209
refs/heads/master: 5f6928378b165c4b0d57a711e1c1eb925ad33846
4 changes: 2 additions & 2 deletions trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -479,6 +479,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
{
struct mtd_oob_buf buf;
struct mtd_oob_ops ops;
struct mtd_oob_buf __user *user_buf = argp;
uint32_t retlen;

if(!(file->f_mode & 2))
Expand Down Expand Up @@ -522,8 +523,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
if (ops.oobretlen > 0xFFFFFFFFU)
ret = -EOVERFLOW;
retlen = ops.oobretlen;
if (copy_to_user(&((struct mtd_oob_buf *)argp)->length,
&retlen, sizeof(buf.length)))
if (copy_to_user(&user_buf->length, &retlen, sizeof(buf.length)))
ret = -EFAULT;

kfree(ops.oobbuf);
Expand Down

0 comments on commit 5f5367d

Please sign in to comment.