aboutsummaryrefslogtreecommitdiff
path: root/drivers/net/xen-netback/netback.c
diff options
context:
space:
mode:
authorJason Wang <[email protected]>2013-12-11 13:08:34 +0800
committerDavid S. Miller <[email protected]>2013-12-11 15:23:06 -0500
commitce232ce01d61b184202bb185103d119820e1260c (patch)
tree19f4f7f8a47187531ef9fb8af4eec251b397f84e /drivers/net/xen-netback/netback.c
parente6fd07c899cd719bb5517bc7f32ce03a62220351 (diff)
macvtap: signal truncated packets
macvtap_put_user() never return a value grater than iov length, this in fact bypasses the truncated checking in macvtap_recvmsg(). Fix this by always returning the size of packet plus the possible vlan header to let the trunca checking work. Cc: Vlad Yasevich <[email protected]> Cc: Zhi Yong Wu <[email protected]> Cc: Michael S. Tsirkin <[email protected]> Signed-off-by: Jason Wang <[email protected]> Acked-by: Vlad Yasevich <[email protected]> Acked-by: Michael S. Tsirkin <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'drivers/net/xen-netback/netback.c')
0 files changed, 0 insertions, 0 deletions