diff options
author | Nicolas Pitre <nico@cam.org> | 2005-04-01 16:36:15 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@mtd.linutronix.de> | 2005-05-23 13:07:33 +0200 |
commit | 81dba488792b29cc8cb2b3d49407be05303dde16 (patch) | |
tree | 60838f712b06c3e8a6acf22df81992d8d26c139a /drivers/mtd/mtdchar.c | |
parent | 998cf6403cdaac74211c619772bea027274ffc42 (diff) | |
download | kernel_i9300_mainline-81dba488792b29cc8cb2b3d49407be05303dde16.zip kernel_i9300_mainline-81dba488792b29cc8cb2b3d49407be05303dde16.tar.gz kernel_i9300_mainline-81dba488792b29cc8cb2b3d49407be05303dde16.tar.bz2 |
[MTD] Reset file position when switching OTP mode
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/mtd/mtdchar.c')
-rw-r--r-- | drivers/mtd/mtdchar.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c index 548b892..da3f1a8 100644 --- a/drivers/mtd/mtdchar.c +++ b/drivers/mtd/mtdchar.c @@ -1,5 +1,5 @@ /* - * $Id: mtdchar.c,v 1.68 2005/02/08 19:12:50 nico Exp $ + * $Id: mtdchar.c,v 1.70 2005/04/01 15:36:11 nico Exp $ * * Character-device access to raw MTD devices. * @@ -583,6 +583,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file, case MTD_OTP_OFF: break; } + file->f_pos = 0; break; } |