[PATCH 30/64] Staging: hv: mouse_drv: Fix a sparse warning

K. Y. Srinivasan kys at microsoft.com
Fri May 13 02:34:43 UTC 2011


Most of the sparse warnings in the hv code are from the base kernel.
This patch fixes the only sparse related issue in the Hyper-V coode.

Signed-off-by: K. Y. Srinivasan <kys at microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz at microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane at microsoft.com>
Signed-off-by: Hank Janssen <hjanssen at microsoft.com>
---
 drivers/staging/hv/hv_mouse.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index f4f512c..1869e25 100644
--- a/drivers/staging/hv/hv_mouse.c
+++ b/drivers/staging/hv/hv_mouse.c
@@ -489,7 +489,7 @@ static void mousevsc_on_channel_callback(void *context)
 
 	u32 bytes_recvd;
 	u64 req_id;
-	unsigned char packet[packetSize];
+	unsigned char packet[0x100];
 	struct vmpacket_descriptor *desc;
 	unsigned char	*buffer = packet;
 	int	bufferlen = packetSize;
-- 
1.7.4.1




More information about the devel mailing list