diff options
author | David S. Miller <davem@davemloft.net> | 2013-12-09 20:20:14 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-09 20:20:14 -0500 |
commit | 34f9f437104b86f6ddfa2770e2cd852846385dc3 (patch) | |
tree | 6c78386b3db9dd47fd2b79efb4dcf8c1472de99e /drivers/net/tun.c | |
parent | 95dc19299f741c986227ec33e23cbf9b3321f812 (diff) | |
parent | 66e56cd46b93ef407c60adcac62cf33b06119d50 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/net
Merge 'net' into 'net-next' to get the AF_PACKET bug fix that
Daniel's direct transmit changes depend upon.
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tun.c')
-rw-r--r-- | drivers/net/tun.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/tun.c b/drivers/net/tun.c index 6b0b2a057a47..3c5a8d8cde50 100644 --- a/drivers/net/tun.c +++ b/drivers/net/tun.c | |||
@@ -1355,6 +1355,8 @@ static ssize_t tun_chr_aio_read(struct kiocb *iocb, const struct iovec *iv, | |||
1355 | ret = tun_do_read(tun, tfile, iv, len, | 1355 | ret = tun_do_read(tun, tfile, iv, len, |
1356 | file->f_flags & O_NONBLOCK); | 1356 | file->f_flags & O_NONBLOCK); |
1357 | ret = min_t(ssize_t, ret, len); | 1357 | ret = min_t(ssize_t, ret, len); |
1358 | if (ret > 0) | ||
1359 | iocb->ki_pos = ret; | ||
1358 | out: | 1360 | out: |
1359 | tun_put(tun); | 1361 | tun_put(tun); |
1360 | return ret; | 1362 | return ret; |