diff options
-rw-r--r-- | drivers/staging/hv/hv_mouse.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/hv/hv_mouse.c b/drivers/staging/hv/hv_mouse.c index 50147f84741c..cbe568616850 100644 --- a/drivers/staging/hv/hv_mouse.c +++ b/drivers/staging/hv/hv_mouse.c | |||
@@ -374,7 +374,7 @@ static void MousevscOnReceiveDeviceInfo(struct mousevsc_dev *InputDevice, struct | |||
374 | desc->desc[0].wDescriptorLength); | 374 | desc->desc[0].wDescriptorLength); |
375 | 375 | ||
376 | /* Send the ack */ | 376 | /* Send the ack */ |
377 | memset(&ack, sizeof(struct mousevsc_prt_msg), 0); | 377 | memset(&ack, 0, sizeof(struct mousevsc_prt_msg)); |
378 | 378 | ||
379 | ack.type = PipeMessageData; | 379 | ack.type = PipeMessageData; |
380 | ack.size = sizeof(struct synthhid_device_info_ack); | 380 | ack.size = sizeof(struct synthhid_device_info_ack); |
@@ -595,7 +595,7 @@ static int MousevscConnectToVsp(struct hv_device *Device) | |||
595 | /* | 595 | /* |
596 | * Now, initiate the vsc/vsp initialization protocol on the open channel | 596 | * Now, initiate the vsc/vsp initialization protocol on the open channel |
597 | */ | 597 | */ |
598 | memset(request, sizeof(struct mousevsc_prt_msg), 0); | 598 | memset(request, 0, sizeof(struct mousevsc_prt_msg)); |
599 | 599 | ||
600 | request->type = PipeMessageData; | 600 | request->type = PipeMessageData; |
601 | request->size = sizeof(struct synthhid_protocol_request); | 601 | request->size = sizeof(struct synthhid_protocol_request); |