aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorK. Y. Srinivasan <[email protected]>2011-05-12 19:34:43 -0700
committerGreg Kroah-Hartman <[email protected]>2011-05-17 12:27:09 -0700
commit459bce97655c8ca19b113efce98be0dd8d800652 (patch)
tree476bacfe2edc3bd96d86507c26b096cd2df74831
parent8a0794117bd5ab8df297932b9e9bd05ba430c472 (diff)
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 <[email protected]> Signed-off-by: Haiyang Zhang <[email protected]> Signed-off-by: Abhishek Kane <[email protected]> Signed-off-by: Hank Janssen <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
-rw-r--r--drivers/staging/hv/hv_mouse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c
index f4f512c30830..1869e2531d40 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;