From: Michael S. Tsirkin Date: Mon, 20 Apr 2009 01:25:59 +0000 (+0000) Subject: tun: fix tun_chr_aio_read so that aio works X-Git-Tag: v2.6.31-rc1~330^2~584 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=43b39dcdbdf823a1c0ac1f2aa2d76bd2f210adc8;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed