Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 45626
b: refs/heads/master
c: d25ade7
h: refs/heads/master
v: v3
  • Loading branch information
Ricard Wanderlöf authored and David Woodhouse committed Oct 21, 2006
1 parent dd81e8c commit 6115d20
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: 42cb1403af8a755b3dfebeb9d2a5f73bc48832a1
refs/heads/master: d25ade71ef80e6312b3e0b53583db518ebb11798
3 changes: 2 additions & 1 deletion trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
memcpy(&oi.eccpos, mtd->ecclayout->eccpos, sizeof(oi.eccpos));
memcpy(&oi.oobfree, mtd->ecclayout->oobfree,
sizeof(oi.oobfree));
oi.eccbytes = mtd->ecclayout->eccbytes;

if (copy_to_user(argp, &oi, sizeof(struct nand_oobinfo)))
return -EFAULT;
Expand Down Expand Up @@ -715,7 +716,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
if (!mtd->ecclayout)
return -EOPNOTSUPP;

if (copy_to_user(argp, &mtd->ecclayout,
if (copy_to_user(argp, mtd->ecclayout,
sizeof(struct nand_ecclayout)))
return -EFAULT;
break;
Expand Down

0 comments on commit 6115d20

Please sign in to comment.