diff options
author | Jason Wang <jasowang@redhat.com> | 2013-12-11 13:08:33 +0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-12-11 15:23:06 -0500 |
commit | e6fd07c899cd719bb5517bc7f32ce03a62220351 (patch) | |
tree | a696c4fea94bcb51b6a8006074e1bb233e53ce95 /net/ipv4/tcp_ipv4.c | |
parent | 1598f7cb4745c40467decc91ee44ec615773eb45 (diff) | |
download | op-kernel-dev-e6fd07c899cd719bb5517bc7f32ce03a62220351.zip op-kernel-dev-e6fd07c899cd719bb5517bc7f32ce03a62220351.tar.gz |
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 'net/ipv4/tcp_ipv4.c')
0 files changed, 0 insertions, 0 deletions