Commit 81dba488 authored by Nicolas Pitre's avatar Nicolas Pitre Committed by Thomas Gleixner

[MTD] Reset file position when switching OTP mode

Signed-off-by: default avatarNicolas Pitre <nico@cam.org>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent 998cf640
/*
* $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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment