提交 75e4fb22 编写于 作者: D Dave Jones 提交者: Greg Kroah-Hartman

staging: hv: fix reversed memset arguments in hv_mouse

size is 3rd arg, not the 2nd.
Signed-off-by: NDave Jones <davej@redhat.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 0ce790e7
...@@ -374,7 +374,7 @@ static void MousevscOnReceiveDeviceInfo(struct mousevsc_dev *InputDevice, struct ...@@ -374,7 +374,7 @@ static void MousevscOnReceiveDeviceInfo(struct mousevsc_dev *InputDevice, struct
desc->desc[0].wDescriptorLength); desc->desc[0].wDescriptorLength);
/* Send the ack */ /* Send the ack */
memset(&ack, sizeof(struct mousevsc_prt_msg), 0); memset(&ack, 0, sizeof(struct mousevsc_prt_msg));
ack.type = PipeMessageData; ack.type = PipeMessageData;
ack.size = sizeof(struct synthhid_device_info_ack); ack.size = sizeof(struct synthhid_device_info_ack);
...@@ -595,7 +595,7 @@ static int MousevscConnectToVsp(struct hv_device *Device) ...@@ -595,7 +595,7 @@ static int MousevscConnectToVsp(struct hv_device *Device)
/* /*
* Now, initiate the vsc/vsp initialization protocol on the open channel * Now, initiate the vsc/vsp initialization protocol on the open channel
*/ */
memset(request, sizeof(struct mousevsc_prt_msg), 0); memset(request, 0, sizeof(struct mousevsc_prt_msg));
request->type = PipeMessageData; request->type = PipeMessageData;
request->size = sizeof(struct synthhid_protocol_request); request->size = sizeof(struct synthhid_protocol_request);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册