From 459bce97655c8ca19b113efce98be0dd8d800652 Mon Sep 17 00:00:00 2001 From: "K. Y. Srinivasan" Date: Thu, 12 May 2011 19:34:43 -0700 Subject: [PATCH] Staging: hv: mouse_drv: Fix a sparse warning 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 Signed-off-by: Haiyang Zhang Signed-off-by: Abhishek Kane Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- drivers/staging/hv/hv_mouse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index f4f512c..1869e253 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; -- 2.7.4