net/hyperv: Fix the page buffer when an RNDIS message goes beyond page boundary

There is a possible data corruption if an RNDIS message goes beyond page
boundary in the sending code path. This patch fixes the problem.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Haiyang Zhang
2012-02-02 07:18:00 +00:00
committed by David S. Miller
parent 0a282538cc
commit c31c151b1c
3 changed files with 18 additions and 5 deletions

View File

@@ -35,7 +35,7 @@
#include <linux/mod_devicetable.h>
#define MAX_PAGE_BUFFER_COUNT 18
#define MAX_PAGE_BUFFER_COUNT 19
#define MAX_MULTIPAGE_BUFFER_COUNT 32 /* 128K */
#pragma pack(push, 1)