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:
e6ebc7f
)
tun: update file current position
author
Zhi Yong Wu
<wuzhy@linux.vnet.ibm.com>
Fri, 6 Dec 2013 06:16:51 +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/tun.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/net/tun.c
b/drivers/net/tun.c
index 782e38bfc1eeea38215492aee5aaa587cc534525..e26cbea1ce68dde18805a67be9e5ed861558036d 100644
(file)
--- a/
drivers/net/tun.c
+++ b/
drivers/net/tun.c
@@
-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;