summaryrefslogtreecommitdiff
path: root/arch/um/drivers
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-06-19 12:35:42 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-06-19 12:37:57 +0400
commitc9036e9f3b2b77f678572260e1ef1075fcb08c36 (patch)
treee8066f53765329d0e4a2466847b4aac68fda85b9 /arch/um/drivers
parent8177a9d79c0e942dcac3312f15585d0344d505a5 (diff)
downloadlinux-c9036e9f3b2b77f678572260e1ef1075fcb08c36.tar.xz
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/drivers')
-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);