[MTD] Reset file position when switching OTP mode
authorNicolas Pitre <nico@cam.org>
Fri, 1 Apr 2005 15:36:15 +0000 (16:36 +0100)
committerThomas Gleixner <tglx@mtd.linutronix.de>
Mon, 23 May 2005 11:07:33 +0000 (13:07 +0200)
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
drivers/mtd/mtdchar.c

index 548b89204aa2387282f47e1bd5a45c7e3498561c..da3f1a8f756e9594813d154f931ef925f224bc01 100644 (file)
@@ -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;
        }