diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2009-04-20 01:25:59 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-04-21 05:42:45 -0700 |
commit | 43b39dcdbdf823a1c0ac1f2aa2d76bd2f210adc8 (patch) | |
tree | 117c9b756380b59c8c29955f02c4d9ff504b047a /include | |
parent | 0a1ec07a67bd8b0033dace237249654d015efa21 (diff) | |
download | op-kernel-dev-43b39dcdbdf823a1c0ac1f2aa2d76bd2f210adc8.zip op-kernel-dev-43b39dcdbdf823a1c0ac1f2aa2d76bd2f210adc8.tar.gz |
tun: fix tun_chr_aio_read so that aio works
aio_read gets const struct iovec * but tun_chr_aio_read casts this to struct
iovec * and modifies the iovec. As a result, attempts to use io_submit
to get packets from a tun device fail with weird errors such as EINVAL.
Fix by using the new skb_copy_datagram_const_iovec.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions