Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 231675
b: refs/heads/master
c: a0c5a39
h: refs/heads/master
i:
  231673: c20757e
  231671: 06ec336
v: v3
  • Loading branch information
Vasiliy Kulikov authored and David Woodhouse committed Dec 3, 2010
1 parent 9ea7302 commit ffc08ea
Show file tree
Hide file tree
Showing 2 changed files with 2 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: ac80dac00f8630803dc0c7f8fbe6983a8e2a8b5f
refs/heads/master: a0c5a3944ce121bb2417c771f77b18485cd84e18
2 changes: 1 addition & 1 deletion trunk/drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
Expand Up @@ -601,6 +601,7 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg)
}

case MEMGETINFO:
memset(&info, 0, sizeof(info));
info.type = mtd->type;
info.flags = mtd->flags;
info.size = mtd->size;
Expand All @@ -609,7 +610,6 @@ static int mtd_ioctl(struct file *file, u_int cmd, u_long arg)
info.oobsize = mtd->oobsize;
/* The below fields are obsolete */
info.ecctype = -1;
info.eccsize = 0;
if (copy_to_user(argp, &info, sizeof(struct mtd_info_user)))
return -EFAULT;
break;
Expand Down

0 comments on commit ffc08ea

Please sign in to comment.