]> git.baikalelectronics.ru Git - kernel.git/commit
net: Fix skb_copy_datagram_from_iovec() to pass the right offset
authorSridhar Samudrala <sri@us.ibm.com>
Fri, 5 Jun 2009 09:35:40 +0000 (09:35 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 8 Jun 2009 07:25:38 +0000 (00:25 -0700)
commit53d602b52fb5077f283ff080ca63547b9f2ce8d3
tree20bda7f4a5a30067d793b2c84ba4dd2a41a13b90
parent9176f02d4974348e7acb915b034f8b025900ce10
net: Fix skb_copy_datagram_from_iovec() to pass the right offset

I am working on enabling UFO between KVM guests using virtio-net and i have
some patches that i got working with 2.6.30-rc8. When i wanted to try them
with net-next-2.6, i noticed that virtio-net is not working with that tree.

After some debugging, it turned out to be several bugs in the recent patches
to fix aio with tun driver, specifically the following 2 commits.

http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=a2e4f8f949cee7cc1b54a7ebc6d33625cc13acf0
http://git.kernel.org/?p=linux/kernel/git/davem/net-next-2.6.git;a=commitdiff;h=f2ed83108ceaa15aa60ce0801ce915ecd1234980

Fix the call to memcpy_from_iovecend() in skb_copy_datagram_from_iovec
to pass the right iovec offset.

Signed-off-by: Sridhar Samudrala <sri@us.ibm.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/datagram.c