From: Michael S. Tsirkin Date: Mon, 20 Apr 2009 01:26:11 +0000 (+0000) Subject: tun: fix tun_chr_aio_write so that aio works X-Git-Tag: v2.6.31-rc1~330^2~583 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6f26c9a7555e5bcca3560919db9b852015077dae;p=pandora-kernel.git tun: fix tun_chr_aio_write so that aio works aio_write gets const struct iovec * but tun_chr_aio_write casts this to struct iovec * and modifies the iovec. As a result, attempts to use io_submit to send packets to a tun device fail with weird errors such as EINVAL. Since tun is the only user of skb_copy_datagram_from_iovec, we can fix this simply by changing the later so that it does not touch the iovec passed to it. Signed-off-by: Michael S. Tsirkin Signed-off-by: David S. Miller --- Reading git-diff-tree failed