Skip to content

Commit

Permalink
[MTD] Reset file position when switching OTP mode
Browse files Browse the repository at this point in the history
Signed-off-by: Nicolas Pitre <nico@cam.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Nicolas Pitre authored and Thomas Gleixner committed May 23, 2005
1 parent 998cf64 commit 81dba48
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/mtd/mtdchar.c
Original file line number Diff line number Diff line change
@@ -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.
*
Expand Down Expand Up @@ -583,6 +583,7 @@ static int mtd_ioctl(struct inode *inode, struct file *file,
case MTD_OTP_OFF:
break;
}
file->f_pos = 0;
break;
}

Expand Down

0 comments on commit 81dba48

Please sign in to comment.