diff options
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 61a994ea8af1..1592eac64e57 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -419,8 +419,9 @@ static int mtd_ioctl(struct inode *inode, struct file *file, | |||
419 | info.erasesize = mtd->erasesize; | 419 | info.erasesize = mtd->erasesize; |
420 | info.writesize = mtd->writesize; | 420 | info.writesize = mtd->writesize; |
421 | info.oobsize = mtd->oobsize; | 421 | info.oobsize = mtd->oobsize; |
422 | info.ecctype = mtd->ecctype; | 422 | /* The below fields are obsolete */ |
423 | info.eccsize = mtd->eccsize; | 423 | info.ecctype = -1; |
424 | info.eccsize = 0; | ||
424 | if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) | 425 | if (copy_to_user(argp, &info, sizeof(struct mtd_info_user))) |
425 | return -EFAULT; | 426 | return -EFAULT; |
426 | break; | 427 | break; |