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

Commit d0b7da8a authored by Zhi Yong Wu's avatar Zhi Yong Wu Committed by David S. Miller
Browse files

tun: update file current position

parent e6ebc7f1
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -1356,6 +1356,8 @@ static ssize_t tun_chr_aio_read(struct kiocb *iocb, const struct iovec *iv,
	ret = tun_do_read(tun, tfile, iocb, iv, len,
			  file->f_flags & O_NONBLOCK);
	ret = min_t(ssize_t, ret, len);
	if (ret > 0)
		iocb->ki_pos = ret;
out:
	tun_put(tun);
	return ret;