diff options
author | Haiyang Zhang <haiyangz@microsoft.com> | 2014-10-22 13:47:18 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-11-14 10:10:21 -0800 |
commit | df1465d47fed22a5e5d06965bf4c1e6a3acf9570 (patch) | |
tree | d296a8560335638c59463c439638a410b19d6e01 /net | |
parent | def42176ba8e1271d8c85fb900c2a92afbc8645b (diff) |
hyperv: Fix the total_data_buflen in send path
[ Upstream commit 942396b01989d54977120f3625e5ba31afe7a75c ]
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 <haiyangz@microsoft.com>
Reviewed-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions