From: Jason Wang Date: Mon, 9 Dec 2013 10:25:17 +0000 (+0800) Subject: macvtap: signal truncated packets X-Git-Tag: v3.13-rc4~3^2~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=730054da3868c35809fd31a4018044ab10b0e215;p=pandora-kernel.git 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 truncated checking work. Cc: Vlad Yasevich Cc: Zhi Yong Wu Signed-off-by: Jason Wang Signed-off-by: David S. Miller --- Reading git-diff-tree failed