tree 60838f712b06c3e8a6acf22df81992d8d26c139a
parent 998cf6403cdaac74211c619772bea027274ffc42
author Nicolas Pitre <[EMAIL PROTECTED]> Fri, 01 Apr 2005 16:36:15 +0100
committer Thomas Gleixner <[EMAIL PROTECTED]> Mon, 23 May 2005 13:07:33 +0200
[MTD] Reset file position when switching OTP mode
Signed-off-by: Nicolas Pitre <[EMAIL PROTECTED]>
Signed-off-by: Thomas Gleixner <[EMAIL PROTECTED]>
drivers/mtd/mtdchar.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/drivers/mtd/mtdchar.c b/drivers/mtd/mtdchar.c
--- 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
case MTD_OTP_OFF:
break;
}
+ file->f_pos = 0;
break;
}
-
To unsubscribe from this list: send the line "unsubscribe bk-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html