Skip to content

Commit

Permalink
Staging: hv: mousevsc: Correctly initialize the header size
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
K. Y. Srinivasan authored and Greg Kroah-Hartman committed Oct 4, 2011
1 parent 60e8615 commit 1738067
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/staging/hv/hv_mouse.c
Original file line number Diff line number Diff line change
Expand Up @@ -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...");
Expand Down

0 comments on commit 1738067

Please sign in to comment.