aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/arm
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2013-12-11 00:08:33 -0500
committerDavid S. Miller <davem@davemloft.net>2013-12-11 15:23:06 -0500
commite6fd07c899cd719bb5517bc7f32ce03a62220351 (patch)
treea696c4fea94bcb51b6a8006074e1bb233e53ce95 /virt/kvm/arm
parent1598f7cb4745c40467decc91ee44ec615773eb45 (diff)
tun: unbreak truncated packet signalling
Commit 6680ec68eff47d36f67b4351bc9836fd6cba9532 (tuntap: hardware vlan tx support) breaks the truncated packet signal by nev return a length greater than iov length in tun_put_user(). This patch fixes 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 io length. Cc: Zhi Yong Wu <wuzhy@linux.vnet.ibm.com> Cc: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Vlad Yasevich <vyasevich@gmail.com> Signed-off-by: Jason Wang <jasowang@redhat.com> Acked-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'virt/kvm/arm')
0 files changed, 0 insertions, 0 deletions