Skip to content

Commit

Permalink
mconsole: we'd better initialize pos before passing it to vfs_read()...
Browse files Browse the repository at this point in the history
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
  • Loading branch information
Al Viro committed Jun 19, 2013
1 parent 8177a9d commit c9036e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/um/drivers/mconsole_kern.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c9036e9

Please sign in to comment.