提交 81dba488 编写于 作者: N Nicolas Pitre 提交者: Thomas Gleixner

[MTD] Reset file position when switching OTP mode

Signed-off-by: NNicolas Pitre <nico@cam.org>
Signed-off-by: NThomas Gleixner <tglx@linutronix.de>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册