提交 c9036e9f 编写于 作者: A Al Viro

mconsole: we'd better initialize pos before passing it to vfs_read()...

Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
上级 8177a9d7
......@@ -147,7 +147,7 @@ void mconsole_proc(struct mc_request *req)
}
do {
loff_t pos;
loff_t pos = file->f_pos;
mm_segment_t old_fs = get_fs();
set_fs(KERNEL_DS);
len = vfs_read(file, buf, PAGE_SIZE - 1, &pos);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册