summaryrefslogtreecommitdiff
path: root/virt/kvm
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-12-09 18:25:16 +0800
committerDavid S. Miller <davem@davemloft.net>2013-12-10 22:06:49 -0500
commit923347bb83c67c3a572b04decb5875c3adb0d306 (patch)
tree90c725a751b4f1a964685cf73d486d53ae88d7e4 /virt/kvm
parentfffc15a5012e9052d3b236efc56840841a125416 (diff)
tun: unbreak truncated packet signalling
Commit 6680ec68eff47d36f67b4351bc9836fd6cba9532 (tuntap: hardware vlan tx support) breaks the truncated packet signal by never return a length greater than iov length in tun_put_user(). This patch fixes this by always return the length of packet plus possible vlan header. Caller can detect the truncated packet by comparing the return value and the size of iov length. Reported-by: Vlad Yasevich <vyasevich@gmail.com> Cc: Vlad Yasevich <vyasevich@gmail.com> Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt/kvm')
0 files changed, 0 insertions, 0 deletions