diff options
Diffstat (limited to 'drivers/mtd')
-rw-r--r-- | drivers/mtd/mtdchar.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index f1af2228a1b1..49e20a497084 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c | |||
@@ -320,6 +320,7 @@ static ssize_t mtd_write(struct file *file, const char __user *buf, size_t count | |||
320 | ops.mode = MTD_OOB_RAW; | 320 | ops.mode = MTD_OOB_RAW; |
321 | ops.datbuf = kbuf; | 321 | ops.datbuf = kbuf; |
322 | ops.oobbuf = NULL; | 322 | ops.oobbuf = NULL; |
323 | ops.ooboffs = 0; | ||
323 | ops.len = len; | 324 | ops.len = len; |
324 | 325 | ||
325 | ret = mtd->write_oob(mtd, *ppos, &ops); | 326 | ret = mtd->write_oob(mtd, *ppos, &ops); |