From: Haiyang Zhang Date: Wed, 22 Oct 2014 20:47:18 +0000 (-0700) Subject: hyperv: Fix the total_data_buflen in send path X-Git-Tag: omap-for-v3.19/fixes-not-urgent-part1~25^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=942396b01989d54977120f3625e5ba31afe7a75c;p=pandora-kernel.git hyperv: Fix the total_data_buflen in send path total_data_buflen is used by netvsc_send() to decide if a packet can be put into send buffer. It should also include the size of RNDIS message before the Ethernet frame. Otherwise, a messge with total size bigger than send_section_size may be copied into the send buffer, and cause data corruption. [Request to include this patch to the Stable branches] Signed-off-by: Haiyang Zhang Reviewed-by: K. Y. Srinivasan Signed-off-by: David S. Miller --- Reading git-diff-tree failed