From: K. Y. Srinivasan Date: Thu, 29 Sep 2011 18:54:46 +0000 (-0700) Subject: Staging: hv: mousevsc: Correctly initialize the header size X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1738067e5d7009c9ce9ee11c7fe9f9156b191aa9;p=openwrt%2Fstaging%2Fblogic.git Staging: hv: mousevsc: Correctly initialize the header size Correctly initialize the header size. Signed-off-by: K. Y. Srinivasan Signed-off-by: Haiyang Zhang Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index 19cfc231ab99..74faa2678485 100644 --- a/drivers/staging/hv/hv_mouse.c +++ b/drivers/staging/hv/hv_mouse.c @@ -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...");