summaryrefslogtreecommitdiffstats
path: root/arch/um
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-06-19 10:35:42 +0200
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-19 10:37:57 +0200
commitc9036e9f3b2b77f678572260e1ef1075fcb08c36 (patch)
treee8066f53765329d0e4a2466847b4aac68fda85b9 /arch/um
parentlseek(fd, n, SEEK_END) does *not* go to eof - n (diff)
downloadlinux-c9036e9f3b2b77f678572260e1ef1075fcb08c36.tar.xz
linux-c9036e9f3b2b77f678572260e1ef1075fcb08c36.zip
mconsole: we'd better initialize pos before passing it to vfs_read()...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'arch/um')
-rw-r--r--arch/um/drivers/mconsole_kern.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/drivers/mconsole_kern.c b/arch/um/drivers/mconsole_kern.c
index d7d21851e60c..3df3bd544492 100644
--- a/arch/um/drivers/mconsole_kern.c
+++ b/arch/um/drivers/mconsole_kern.c
@@ -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);