Staging: hv: mousevsc: Correctly initialize the header size
authorK. Y. Srinivasan <kys@microsoft.com>
Thu, 29 Sep 2011 18:54:46 +0000 (11:54 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 4 Oct 2011 17:39:32 +0000 (10:39 -0700)
Correctly initialize the header size.

Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/hv/hv_mouse.c

index 19cfc231ab99425db5cca84d6c8cc61b569af7f9..74faa2678485f69ff3125760adda18f75a7bb534 100644 (file)
@@ -590,7 +590,7 @@ static int mousevsc_connect_to_vsp(struct hv_device *device)
        request->size = sizeof(struct synthhid_protocol_request);
 
        request->request.header.type = SynthHidProtocolRequest;
-       request->request.header.size = sizeof(unsigned long);
+       request->request.header.size = sizeof(unsigned int);
        request->request.version_requested.version = SYNTHHID_INPUT_VERSION;
 
        pr_info("synthhid protocol request...");