Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c9036e9f authored by Al Viro's avatar Al Viro
Browse files

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);