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

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

macvtap: update file current position

parent 239c78db
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -876,6 +876,8 @@ static ssize_t macvtap_aio_read(struct kiocb *iocb, const struct iovec *iv,

	ret = macvtap_do_read(q, iocb, iv, len, file->f_flags & O_NONBLOCK);
	ret = min_t(ssize_t, ret, len); /* XXX copied from tun.c. Why? */
	if (ret > 0)
		iocb->ki_pos = ret;
out:
	return ret;
}