Commit c9036e9f authored by Al Viro's avatar Al Viro

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

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
parent 8177a9d7
...@@ -147,7 +147,7 @@ void mconsole_proc(struct mc_request *req) ...@@ -147,7 +147,7 @@ void mconsole_proc(struct mc_request *req)
} }
do { do {
loff_t pos; loff_t pos = file->f_pos;
mm_segment_t old_fs = get_fs(); mm_segment_t old_fs = get_fs();
set_fs(KERNEL_DS); set_fs(KERNEL_DS);
len = vfs_read(file, buf, PAGE_SIZE - 1, &pos); len = vfs_read(file, buf, PAGE_SIZE - 1, &pos);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment