]> git.karo-electronics.de Git - mv-sheeva.git/commitdiff
Staging: hv: mouse_drv: Fix a sparse warning
authorK. Y. Srinivasan <kys@microsoft.com>
Fri, 13 May 2011 02:34:43 +0000 (19:34 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 17 May 2011 19:27:09 +0000 (12:27 -0700)
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@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Abhishek Kane <v-abkane@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/hv_mouse.c

index f4f512c3083051744ae1c75a095f702c27f57995..1869e2531d409a02de0d2d8fa2b8cc40a991a38c 100644 (file)
@@ -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;