projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
239c78d
)
macvtap: update file current position
author
Zhi Yong Wu
<wuzhy@linux.vnet.ibm.com>
Fri, 6 Dec 2013 06:16:50 +0000
(14:16 +0800)
committer
David S. Miller
<davem@davemloft.net>
Fri, 6 Dec 2013 17:42:14 +0000
(12:42 -0500)
Signed-off-by: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/macvtap.c
b/drivers/net/macvtap.c
index 9093004f9b63004922a0202180d7341343287553..957cc5c3653dfe53215b4b1e61dabed082dce6b2 100644
(file)
--- a/
drivers/net/macvtap.c
+++ b/
drivers/net/macvtap.c
@@
-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;
}