diff options
author | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-19 10:35:42 +0200 |
---|---|---|
committer | Al Viro <viro@zeniv.linux.org.uk> | 2013-06-19 10:37:57 +0200 |
commit | c9036e9f3b2b77f678572260e1ef1075fcb08c36 (patch) | |
tree | e8066f53765329d0e4a2466847b4aac68fda85b9 /arch/um | |
parent | lseek(fd, n, SEEK_END) does *not* go to eof - n (diff) | |
download | linux-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.c | 2 |
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); |